このFb.ui
feed
メソッドは、新しいフィードを投稿するための新しい小さなウィンドウを開きます。同じウィンドウで投稿リクエストを開き、同じ(前の)ウィンドウにリダイレクトを投稿した後。
誰??
編集: FB.init({appId: "1234567890", status: true, cookie: true});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
display: 'touch',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
@ニッザン・トマー
はい、これでダイアログ ボックスが開きますが、iPhone/iPad では機能しません。動作する場合、新しいウィンドウ/タブを開きたくありませんが、ユーザーがいる/いた同じウィンドウでプロセス全体(認証と投稿)が必要です。