如何从iPhone SDK发布信息到Facebook墙?

编程入门 行业动态 更新时间:2024-10-10 09:20:24
本文介绍了如何从iPhone SDK发布信息到Facebook墙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我是iPhone的新手。我的应用程序使用iPhone SDK连接到Facebook,我可以使用

@http://www.facebook。 com / connect / prompt_feed.php /?message = Hello

但在我的应用程序中,所有消息都显示在tableview上,我想发布在Facebook墙上选择的消息,将所选消息存储在Twitter消息(变量 twittermessage )中,并写入

@www.facebook/connect/prompt_feed.php/?message=%@,twittermessage;

但它会出现以下错误。

Objective-C 的静态实例NSString

我从 。

解决案

你所得到的错误消息是由于NSString的。这不是Facebook的错误。

为了在Facebook上发布消息,请使用以下代码

[NSString stringwithFormat:@www.facebook/connect/prompt_feed.php/?message=%@,twittermessage];

然后使用此字符串作为URL发布消息的引用

I am new to iPhone. My application connects to Facebook using the iPhone SDK, and I can post a default message using

@"www.facebook/connect/prompt_feed.php/?message=Hello"

but in my application all messages display on tableview and I want to post the selected message on the wall of Facebook, store selected message in a Twitter message (variable twittermessage) and write

@"www.facebook/connect/prompt_feed.php/?message=%@",twittermessage;

But it gives the following error.

statically instance of Objective-C NSString

I used the iPhone Facebook SDk from How To Post on Facebook with your iPhone App.

解决方案

the error message you are getting is due to NSString. this is not an facebook error.

In order to post a message on facebook use the following code

[NSString stringwithFormat:@"www.facebook/connect/prompt_feed.php/?message=%@",twittermessage];

Then use this string as a reference for the URL to post a message

更多推荐

如何从iPhone SDK发布信息到Facebook墙?

本文发布于:2023-11-28 14:25:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642783.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:信息   iPhone   SDK   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!