ios如何调用facebook打开指定用户的主页
2014-09-30 15:53
661 查看
You have to use the facebook ID for the given page rather than the vanity URL. To get the pages ID, enter your page's vanity name at the following URL and copy the value for "id":
https://graph.facebook.com/yourappspage
Once you have the id, you can set up the method to check if FB is installed using the canOpenURL method and serve the appropriate content for both states:
https://graph.facebook.com/yourappspage
Once you have the id, you can set up the method to check if FB is installed using the canOpenURL method and serve the appropriate content for both states:
NSURL *facebookURL = [NSURL URLWithString:@"fb://profile/113810631976867"]; if ([[UIApplication sharedApplication] canOpenURL:facebookURL]) { [[UIApplication sharedApplication] openURL:facebookURL]; } else { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://facebook.com"]]; }
相关文章推荐
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- IOS 如何调用其他应用程序打开我下载好了的 EXCEL WORD PDF 等
- iOS 里面如何使用第三方应用程序打开自己的文件,调用wps其他应用打开当前应用里面的的ppt doc xls
- Android,iOS打开手机QQ与指定用户聊天
- 编写一个程序,首先用opendir函数打开用户指定的目录,然后调用readdir函数读取该目录内容
- Android,iOS打开手机QQ与指定用户聊天界面(联系客服)
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS移动端打开手机QQ的指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS,浏览器打开手机QQ与指定用户聊天界面
- iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- iOS-iOS打开手机QQ与指定用户聊天界面
- iOS开发swift如何调用系统相册和相机获取图片设置用户头像
- 【转】Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面
- Android,iOS打开手机QQ与指定用户聊天界面