我想發佈到用戶的活動Feed',但我不明白如何。如何使用他的Facebook圖形API訪問令牌
這裏是我的演示應用程序: http://bazaar-market.co.uk/facebook_test/car.html
您可以查看源代碼,看看所有的代碼,因爲它是所有的HTML。
<script type="text/javascript">
function postView()
{
FB.api(
'/me/fandango-auctions:view',
'post',
{ item : 'http://bazaar-market.co.uk/facebook_test/car.html' },
function(response) {
if (!response || response.error) {
alert("Error");
} else {
alert('View was successful! Action ID: ' + response.id);
}
console.log(response);
});
}
</script>
我收到錯誤:
This method must be called with an app access_token
如果我禁用的access_token在應用程序的設置,然後它說是這樣的:
You must use an access_token to access the users account details
誰能幫助?