[英]Facebook + iOS - post link without dialog
我在iPhone應用程序中使用facebook-ios-sdk
我正在嘗試從iPhone應用程序在Facebook上發布鏈接
NSLog(@"link..%@",[shareDict objectForKey:@"url"]);
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[shareDict objectForKey:@"url"], @"link",nil];
[facebookObj requestWithMethodName:@"facebook.Stream.publish" andParams:params
andHttpMethod:@"POST" andDelegate:self];
它成功發布為我的應用程序日志
2011-03-30 13:10:02.128 myApp[1804:207] link..http://khabar.ndtv.com/Home.aspx
2011-03-30 13:10:04.064 myApp[1804:207] received response..https://api.facebook.com/method/facebook.Stream.publish
2011-03-30 13:10:04.066 myApp[1804:207] request didLoad.. . . API..thod/facebook.stream.publish
但是鏈接沒有顯示在Facebook牆上...顯示為..
現在
這是我的FB參數片段:
[fbArguments setObject:theName forKey:@"name"];
[fbArguments setObject:theCpation forKey:@"caption"];
[fbArguments setObject:theDescription forKey:@"description"];
[fbArguments setObject:theLink forKey:@"link"];
[fbArguments setObject:theHREF forKey:@"href"];
[fbArguments setObject:thePictureURL forKey:@"picture"];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.