【发布时间】:2013-03-13 02:29:48
【问题描述】:
我想从我的 iPhone 应用程序中自动共享一个社交媒体用户帐户(没有对话框、取消选项、发送选项)。我该怎么做。
【问题讨论】:
-
没关系,我的问题有什么问题,你为什么要降低我的观点?
-
@H2CO3 你无权像这样评论别人。
标签: iphone ios facebook social-media
我想从我的 iPhone 应用程序中自动共享一个社交媒体用户帐户(没有对话框、取消选项、发送选项)。我该怎么做。
【问题讨论】:
标签: iphone ios facebook social-media
不要使用对话框,而是使用doGraphPost分享你的东西
使用此方法在fb上分享,无需打开对话框
<FbGraphResponse_Obj> = [fbGraph doGraphPost:@"me/feed" withPostVars:<NSMutableDictionary>];
在此处详细查找:
// Invoke fbGraphCallback & prepare fbArray..
// preapare conent to be posted, add following snippet in same function
NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4];
[variables setObject:@"Yours content to be shared" forKey:@"message"];
// share prepared content to fb
fb_graph_response = [fbGraph doGraphPost:@"me/feed" withPostVars:variables];
NSLog(@"postMeFeedButtonPressed: %@", fb_graph_response.htmlResponse);
where fb_graph_response is an instance of FbGraphResponse
享受编程!
【讨论】: