douzong5835 2010-11-15 17:29 采纳率: 100%
浏览 81
已采纳

发布Twitter / Facebook状态而不进行身份验证?

I'm currently working my way through the facebook-iphone-sdk and the MGTwitterEngine and I'm wondering why this all has to be so hard.

I'm not planning to access any data from the two social networks, just allow the users of my app to post a message as their status/update.

Now after I installed the facebook-iphone-sdk I realized they just send you to safari to authenticate at facebook and then back into your app. Now this seems overly complicated for the users of my app, if they just want to post they don't have to go back.

Isn't there a way, I could just call something like

http://api.twitter.com/version/statuses/update?text="this is the new status text"

?


EDIT: The first answer

http://twitter.com/home?status=[URL ENCODED TWEET].

is exactly what I need. Unfortunately this works perfectly on the Laptop, though if you are not already logged in on the iPhone, you will be presented with a a screen where one has to press "login" once. (at the url "mobile.twitter.com/home?status=[]"). Pressing login there links you to "mobile.twitter.com/session/new" without the status argument and so once you are authenticated the status message is lost.

  • 写回答

2条回答 默认 最新

  • dongyun4010 2010-11-15 17:31
    关注

    The URL you're looking for is:

    http://twitter.com/home?status=[URL ENCODED TWEET].
    

    This will open up a window of twitter and, if logged in, populate that tweet into the Tweet box.

    For Facebook Share, the URL is

    http://www.facebook.com/share.php?u=http://SHAREURLGOESHERE
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试