2010-12-16 9 views
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> 

を "エラーが発生しました" と言う...Facebookのダイアログが表示されますが、常に

<head> 

...

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> 
</head> 
<body> 
<div id="fb-root"></div> 
<fb:like id="fb-like" href="http://www.example.com" layout="button_count" show_faces="false" width="100"></fb:like> 

...

myscript.js

FB.ui(
    { 
    method: 'stream.publish', 
    message: 'getting educated about Facebook Connect', 
    attachment: { 
     name: 'Connect', 
     caption: 'The Facebook Connect JavaScript SDK', 
     description: (
     'A small JavaScript library that allows you to harness ' + 
     'the power of Facebook, bringing the user\'s identity, ' + 
     'social graph and distribution power to your site.' 
     ), 
     href: 'http://github.com/facebook/connect-js' 
    }, 
    action_links: [ 
     { text: 'Code', href: 'http://github.com/facebook/connect-js' } 
    ], 
    user_message_prompt: 'Share your thoughts about Connect' 
    }, 
    function(response) { 
    if (response && response.post_id) { 
     alert('Post was published.'); 
    } else { 
     alert('Post was not published.'); 
    } 
    } 
); 

Facebookのようなボタンが私のページに表示されています。私はそれを実装しようとして始めたので、これは2日間繰り返し起こっている

**An error occurred. Please try again later.** 

:私は私のJavaScriptソースから上記FB.uiメソッドを呼び出すとき

はしかし、Facebookのダイアログはなく、表示され、このエラーメッセージがポップアップ表示されます。

非常に有用なエラーメッセージではありません。

何が原因か、問題の絞り込み方法は何ですか?

答えて

1

廃止されたことは問題ではありませんが、問題はあなたがそのアクションを実行する権限を持っていないことです。 FB.loginの呼び出しがpublish_streamを要求していることを確認してください。

サイトログインによってリクエストされていた問題が発生しましたが、この時点でユーザーがサイトにログインしていないと、

関連する問題