Ios 在家发布facebook新订阅源
我使用的是Facebook SDK,一般来说,它工作正常。但当我发布一个新的提要时,它只出现在我的时间线上,而不出现在我朋友的新闻(他们的facebook主页)上 因此,想要查看我的订阅源的朋友必须访问我的个人资料-这不是我想要的 我的facebook应用程序中是否有需要更改的设置?此设置在Facebook开发者门户的何处 编辑: 对不起,我忘了语言!我正在用iOS SDK编程 下面是发布新提要的代码:Ios 在家发布facebook新订阅源,ios,xcode,facebook,feed,Ios,Xcode,Facebook,Feed,我使用的是Facebook SDK,一般来说,它工作正常。但当我发布一个新的提要时,它只出现在我的时间线上,而不出现在我朋友的新闻(他们的facebook主页)上 因此,想要查看我的订阅源的朋友必须访问我的个人资料-这不是我想要的 我的facebook应用程序中是否有需要更改的设置?此设置在Facebook开发者门户的何处 编辑: 对不起,我忘了语言!我正在用iOS SDK编程 下面是发布新提要的代码: -(IBAction)publishStream:(id)sender { }您能发布一个
-(IBAction)publishStream:(id)sender
{
}您能发布一个具体的代码示例吗?另外--您使用哪种语言编程?您是否已a)将应用程序从沙盒模式中取出,以及b)将应用程序的帐户隐私设置设置为大于“仅限我”的值?我的应用程序未处于沙盒模式。隐私设置正确。我的帖子被进一步编辑。
String *myString = "Test string!"
SBJSON *jsonWriter = [[SBJSON new] autorelease];
//post's link
NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Download iPhone app",@"text", //link name
@"http://itunes.apple.com/it/app/id399663397?mt=8",@"href", //link url
nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
//post image
NSDictionary* media = [NSDictionary dictionaryWithObjectsAndKeys:
@"image", @"type", //type of media
@"http://img834.imageshack.us/xxx.png", @"src", //image link
@"http://itunes.apple.com/it/app/idxxxxx", @"href", nil]; //if image is clicked go to link "x"
NSArray * arraymedia = [NSArray arrayWithObject:media];
//image and post links
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"My app name", @"name", //name near image
arraymedia, @"media",
myString, @"caption", //caption - little image under our app
@"http://itunes.apple.com/it/app/idxxxxx/", @"href", nil];//link of caption
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
//post settings
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"api_key", //fb api key
@"Share on Facebook", @"user_message_prompt", @"Post test for my app", @"message", //user can modify message post actionLinksStr, @"action_links",
attachmentStr, @"attachment",
nil];
[_facebook dialog: @"stream.publish"
andParams: params
andDelegate:self];