2013-03-08 53 views
0

現在,Facebook在2013年2月推出了新政策,其中包括其他更改,應用程序無法發佈到朋友的牆上;並且移動設備不支持發送對話框。針對移動設備的Facebook直接信息選項

什麼選擇,我們必須張貼在用戶的朋友牆(上已經有一個應用程序認證的用戶的行爲)使用移動設備?

回答

0

通過添加display = touch和* to = FRIENDS_ID *並顯示一個對話框,您可以使用Feed對話框或將用戶重定向到移動友好網址。

To display a mobile-friendly Feed Dialog, redirect the user to the following URL: 
http://www.facebook.com/dialog/feed?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&to=FRIENDS_ID&display=touch 

使用飼料對話框的JavaScript API

function postToFeed(kompis) { 
    // calling the API ... 
    var obj = { 
     method: 'feed', 
     redirect_uri: 'http://url.nu', 
     link: 'http://www.url.se', 
     picture: 'http://url/tfc.gif', 
     name: 'Facebook Dialogs', 
     caption: 'Reference Documentation', 
     description: 'Using Dialogs to interact with users.', 
     display:'touch', 
     to:kompis 
    }; 
    function callback(response) { 
    if (response && response.post_id) { 
    alert('Post was published.'); 
    document.getElementById('status').innerHTML = "Post ID: " + response['post_id']; 
     } else { 
     alert('Post was not published.'); 
     } 
    } 
    FB.ui(obj, callback); 
    } 

PS:當我嘗試在Firefox設置我的用戶代理的 「iPhone」,否則它would'nt工作!

+0

我做到了這一點,它並沒有爲我的android設備工作 – franciscovalera 2013-03-14 15:33:52

-2

開放的Facebook app.first打開account.open上你的profile.edit您number.ok選項「通過sms'.save得到通知的選項。

+0

Stackoverflow是用於編程的問題......問題是指API,而不是用戶界面。 – Emissary 2013-10-06 14:36:13