关于 iphone 对话框提要的 facebook sdk 问题

发布于 2024-11-09 15:31:51 字数 1396 浏览 0 评论 0原文

我使用此代码从 iphone 中的应用程序在 facebook 中发布

   NSString *title=[NSString stringWithFormat:@"Posted from Poems of Love v2 iPhone/iPod/iPad touch app - { Poem Name: "]; 
//& titletext.text & ""\",";
 NSString *alltitle= [title stringByAppendingString:poemtitle.text]; 
alltitle= [alltitle stringByAppendingString:@" } - { Author:"];
alltitle= [alltitle stringByAppendingString:authorname.text]; 
NSString *alltitle1= [alltitle stringByAppendingString:@" }"]; 

    NSString *list = poembody.text;
    NSString *kAppId=@"numid";
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   kAppId, @"app_id",
                                   @"http://www.poemsofloveapp.com", @"link",
                                   @"http://3.bp.blogspot.com/_co4MVQE_2l0/TPRh6TBjaZI/AAAAAAAAAOg/E0kgWLd4ieE/s1600/poemsoflovev2logo.png", @"picture",
                                   alltitle1, @"name",
                                   @"\nhttp://www.poemsofloveapp.com - Join us on facebook!\n", @"caption",
                                   list, @"description",
                                   @"",@"message",
                                   nil];
    [mainDelegate._session dialog:@"feed" andParams:params andDelegate:self];

该对话框显示我点击“跳过”或“发布”,然后显示第二个对话框,其中是空的!没有任何消息 没有任何信息

为什么会发生这种情况?

I use this code to post in facebook from my app in iphone

   NSString *title=[NSString stringWithFormat:@"Posted from Poems of Love v2 iPhone/iPod/iPad touch app - { Poem Name: "]; 
//& titletext.text & ""\",";
 NSString *alltitle= [title stringByAppendingString:poemtitle.text]; 
alltitle= [alltitle stringByAppendingString:@" } - { Author:"];
alltitle= [alltitle stringByAppendingString:authorname.text]; 
NSString *alltitle1= [alltitle stringByAppendingString:@" }"]; 

    NSString *list = poembody.text;
    NSString *kAppId=@"numid";
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   kAppId, @"app_id",
                                   @"http://www.poemsofloveapp.com", @"link",
                                   @"http://3.bp.blogspot.com/_co4MVQE_2l0/TPRh6TBjaZI/AAAAAAAAAOg/E0kgWLd4ieE/s1600/poemsoflovev2logo.png", @"picture",
                                   alltitle1, @"name",
                                   @"\nhttp://www.poemsofloveapp.com - Join us on facebook!\n", @"caption",
                                   list, @"description",
                                   @"",@"message",
                                   nil];
    [mainDelegate._session dialog:@"feed" andParams:params andDelegate:self];

The dialog shows up i tap skip or publish and then a second dialog shows up which is empty! no message on it nothing

Why is this happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

英雄似剑 2024-11-16 15:31:51

我的错误对不起大家,我打电话给 [mainDelegate._session 对话框:@"feed" andParams:params andDelegate:self];
我知道之前有两次愚蠢!!!

My mistake sorry guys i called [mainDelegate._session dialog:@"feed" andParams:params andDelegate:self];
two times previously stupid i know!!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文