且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从IOS应用程序获取facebook专辑

更新时间:2022-12-21 18:17:12

您的身份验证令牌是否有权限查看该用户的相册?否则我不确定。

Does your auth token have permission to view that user's albums? Otherwise I'm not certain.

您可能会考虑使用Graph API而不是FQL。在iOS上,您可以使用Facebook的图书馆( here )。

You might consider using the Graph API instead of FQL. On iOS you can use Facebook's library (available here).

这提供了方法 requestWithGraphPath:andDelegate:。您需要的图形路径是 {user_id} / albums

This provides the method requestWithGraphPath:andDelegate:. The graph path you need is {user_id}/albums.

您的结果返回给委托方法请求:didLoad:,但可以帮助您解决的主要优点你的问题是可选的委托方法 request:didFailWithError:。当有错误时,这提供了更多的信息,而不仅仅是一个空数组。

Your result is returned to the delegate method request:didLoad:, but the main advantage that may help you solve your problem is the optional delegate method request:didFailWithError:. When there's an error, this provides a lot more information than just an empty array.