2011-10-10 2 views
1

페이스 북 탭에서 피드에 기사를 게시 할 수있는 옵션을 사용자에게 제공하고 싶습니다. 나는 오류를 찾기 위해 코드의 공모를 줄이기 위해 노력했지만, 심지어이 베어 뼈-예와 나는 오류 얻을 :간단한 피드 대화 상자를 열려고 할 때 "API 오류 코드 : 191"이 계속 표시되는 이유는 무엇입니까?

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>300 flaskor!</title> 
<link rel="stylesheet" href="style.css" type="text/css"/> 
</head> 
<body onLoad="publish();"> 

<div id="fb-root"></div> 
<script src="//connect.facebook.net/en_US/all.js"></script> 
<script> 
    FB.init({ 
    appId : 'MYAPPID', 
    status : true, // check login status 
    cookie : true, // enable cookies to allow the server to access the session 
    xfbml : true, // parse XFBML 
    channelURL : '//MYDOMAIN.COM/channel.html', // Channel File 
    oauth : false // enable OAuth 2.0 
    }); 

var publish = function() { 

FB.ui(
    { 
    method: 'feed', 
    name: 'I like turtles!', 
    link: 'http://www.facebook.com/MyFacebookPage', 
    picture: 'http://MYDOMAIN.COM/logo.jpg', 
    caption: 'Like us!', 
    description: 'this is a test dialog' 
    }); 

}; 

</script> 
</body> 

MYDOMAIN.COM은 응용 프로그램 설정에서 응용 프로그램의 도메인으로 추가됩니다.

+0

FB 연결에서 [191 API 오류] (http://facebook.stackoverflow.com/questions/7708992/191-api-error-on-fb-connect) – bkaid

+0

중복 가능한 [Facebook API 오류 191 ] (http://stackoverflow.com/questions/4691782/facebook-api-error-191) – genesis

답변

1

답변을 찾았습니다. 앱 설정에서 site-url을 설정하는 것처럼 간단합니다.

관련 문제