gpt4 book ai didi

iphone - 从 iPhone 在 Facebook 墙上发布消息

转载 作者:行者123 更新时间:2023-12-03 20:59:34 25 4
gpt4 key购买 nike

我想在 Facebook 墙上发布一些消息。

我可以从 iPhone 登录并连接 Facebook。但我很难找到解决方案。

你能告诉我如何实现这个功能吗?

最佳答案

假设您有一个有效的 FBSession 对象:

    FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease]; 
dialog.delegate = self; dialog.userMessagePrompt = @"Example prompt";
dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\"," "\"href
\":\"http://developers.facebook.com/connect.php?tab=iphone\"," "\"caption\":\"Caption
\",\"description\":\"Description\"," "\"media\":[{\"type\":\"image\"," "\"src
\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\"," "\"href
\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}]," "\"properties \":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}"; // replace this with a friend's UID // dialog.targetId = @"999999";
[dialog show];

Source: Facebook Connect Reference

关于iphone - 从 iPhone 在 Facebook 墙上发布消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2054915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com