php 获取 Facebook 用户的收件箱消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11170189/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Get a Facebook user's inbox messages
提问by G10DRA
I'm creating a Facebook application for listing all the user inbox messages using the Facebook PHP SDK.
我正在创建一个 Facebook 应用程序,用于使用 Facebook PHP SDK 列出所有用户收件箱消息。
I used this code to get all the user's photos.
我使用此代码来获取所有用户的照片。
<?php
$facebook->api('/me/albums');
?>
How can I get all the user's inbox messages?
如何获取所有用户的收件箱消息?
回答by phwd
Check their inbox.
检查他们的inbox.
http://developers.facebook.com/docs/reference/api/user/#inbox
http://developers.facebook.com/docs/reference/api/user/#inbox
$messages = $facebook->api('me/inbox');
$messages = $facebook->api('me/inbox');
Explorer: http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Finbox
资源管理器:http: //developers.facebook.com/tools/explorer/?method=GET&path=me%2Finbox

