使用 Facebook C# SDK 获取应用程序照片
使用 Windows Phone 7 上的 Facebook C# SDK,我的移动应用程序可以成功将应用程序上传到用户的相册,并发布给我的帖子/照片。当我使用 applicationId/photos 查询通过图形 API 查询应用程序的照片集合时,这些照片不会显示。有什么建议吗?为此需要什么权限?我正在取回一个空数据集。
在以下代码示例中,accesstoken 是访问令牌,112233445666 是我的 Facebook 应用程序 ID。
var client = new FacebookClient("accesstoken");
client.GetAsync("112233445666/photos", new Facebook.FacebookAsyncCallback(delegate(Facebook.FacebookAsyncResult asyncResult)
{
var result = asyncResult.Result as JsonObject;
System.Diagnostics.Debug.WriteLine("Application Photos: {0}", result);
}));
Using the Facebook C# SDK on Windows Phone 7, my mobile application can successfully upload apps to a user's photo album with a post to me/photos. Those photos do not show up when I query the application's photos collection via the graph API using applicationId/photos query. Any suggestions? What permissions are necessary for this? I am getting back an empty data set.
In the following code sample, accesstoken is the access token and 112233445666 is my Facebook application Id.
var client = new FacebookClient("accesstoken");
client.GetAsync("112233445666/photos", new Facebook.FacebookAsyncCallback(delegate(Facebook.FacebookAsyncResult asyncResult)
{
var result = asyncResult.Result as JsonObject;
System.Diagnostics.Debug.WriteLine("Application Photos: {0}", result);
}));
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你是在上传图片到用户的照片库,但你是在查询应用程序的照片?有区别。您想要查询类似的内容,
您正在编写一个将每个人的照片存储在应用程序的图片库中的应用程序,这没有意义,或者这就是您正在做的事情?
It sounds like you are uploading pictures to the user's photo gallery, but you are querying the application's photos? there is a difference. You want to query something like
It wouldn't make sense that you are writing an app that stores EVERYONE's photos in the application's image gallery or is that what you are doing?