1
我想從我的iPhone應用程序中自動共享社交媒體用戶帳戶(無對話框,取消選項,發送選項)。我可以怎麼做。Facebook和Twitter的自動分享到用戶帳戶?
我想從我的iPhone應用程序中自動共享社交媒體用戶帳戶(無對話框,取消選項,發送選項)。我可以怎麼做。Facebook和Twitter的自動分享到用戶帳戶?
而不是使用對話框,共享使用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
享受編程!
沒關係,我的問題出了什麼問題,你爲什麼減少我的觀點? – 2013-03-23 06:13:45
@ H2CO3你無權對此類其他人發表評論。 – Abha 2013-03-23 06:18:47