App*_*ure 5 iphone objective-c sharekit
Facebook没有在sharekit api上工作..登录后访问权限是可以的但是之后它不会显示任何东西刚刚消失..我在iphone模拟器中检查.
请帮帮我..谢谢.
我完全不明白你的要求或你遇到的麻烦,但我是这样做的:
-(IBAction)connectButton {
SHKItem *item;
NSURL *url = [NSURL URLWithString:@"put the link to the itunes store for your app here"];
//this link is so if a person clicks the Facebook post, they will be directed to your app in the store
NSString *postString = @"I just played a game of some game!;
item = [SHKItem URL:url title:[NSString stringWithFormat:@"I'm playing some game! Want to play too?"];
item = [SHKItem URL:url title:@"Share Me!"];
// Share the item
[SHKFacebook shareItem:item];
}
Run Code Online (Sandbox Code Playgroud)
抱歉,我在格式化时遇到问题。另外,请确保导入SHKFacebook.h类文件。
这将通过应用程序内的按钮打开 Facebook 对话框
| 归档时间: |
|
| 查看次数: |
2711 次 |
| 最近记录: |