2012-04-04 101 views

回答

1

不,這是不可能的。

當Facebook調用你的頁面,它通過張貼到iframe做,你會得到一個signed request其中最缺乏數據,如果用戶還沒有授權您的應用程序,因爲它在文檔中說:

Some fields and values, the user_id and oauth_token for example will only be passed if the user has authorized your app

Graph API請求要求您提供一個積極的訪問令牌,否則你應該得到這個錯誤:(你可以檢查在Graph API Explorer;只是刪除訪問令牌嘗試之前)

{ 
    "error": { 
    "message": "An active access token must be used to query information about the current user.", 
    "type": "OAuthException", 
    "code": 2500 
    } 
} 

相關問題