Facebook feeds on iOS app?

烂漫一生 提交于 2019-12-25 00:26:24

问题


How can I display face book feeds related to a group on an iOS App?

Is there any JSON/JSONP call to fetch the feeds??

Any help is Appreciated.


回答1:


The simplest - is just to show a web page on web view. Facebook manages itself to fit the width of your webView control.

// Load facebook data
NSString *fbUrlAddress = @"http://www.facebook.com/FLORtiles"; // here you put your own group
//Create a URL object.
NSURL *fbUrl = [NSURL URLWithString:fbUrlAddress];
NSString *webHTMLfb = [NSString stringWithContentsOfURL:fbUrl encoding:NSUTF8StringEncoding error:NULL];
//NSLog(@"webHTML of facebook: %@", webHTMLfb);
//URL Requst Object
NSURLRequest *fbRequestObj = [NSURLRequest requestWithURL:fbUrl];
//Load the request in the UIWebView.
[fbWebView loadRequest:fbRequestObj];



回答2:


You might need to get familiar with Facebook's Graph Api




回答3:


Go through this -> https://developers.facebook.com/docs/mobile/ios/build/



来源:https://stackoverflow.com/questions/10599278/facebook-feeds-on-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!