iOS - 阅读Facebook的帖子在UITableView
答
你需要获得一个OAuth令牌,并从OpenGraph
的JSON提要对于OAuth令牌:
https://graph.facebook.com/oauth/access_token?client_id=<client_id here>&client_secret=<client_secret here>&grant_type=client_credentials
和饲料:
https://graph.facebook.com/<facebook_page_id>/feed/?access_token=<oauth_token>
你得到的JSON数组返回,并可以使用您最喜欢的JSON解析器解析它。 此外,您可以使用此工具探索开图:
https://developers.facebook.com/tools/explorer/
希望有所帮助。快乐的iCoding。