- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我可以通过这种方式将图片发布到 FaceBook,无需任何用户交互:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
facebookMessageTextView.text, @"message",
imageToSend, @"source",
nil];
FBRequest *request = [facebook requestWithGraphPath:@"me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self];
现在我想做的是显示一个标准的 FB 对话框,这样用户就可以修改标题,并可能决定发布到其他人的墙上,或者作为私有(private)消息发送。如(来自 iPhone Facebook 应用程序):
我不需要相机按钮,因为我传入的图像不会被替换。但我希望用户能够选择张贴到他们的墙上,另一个用户的墙上,更改标题和隐私。我该怎么做?我还可以选择将此图片作为私有(private)消息发送吗?
更新:我可以将已经上传到用户相册(通过上面的代码)的照片发送到他们 friend 的时间轴,使用这个:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"http://www.bitsonthego.com", @"link",
[fbID objectForKey:@"id"], @"object_attachment",
@"my profile", @"name",
@"description", @"description",
@"name of the post", @"name",
@"caption of my post", @"caption",
facebookMessageTextView.text, @"message",
nil];
[facebook requestWithGraphPath:@"/{friend's id}/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
我似乎仍然无法在标准 Facebook UI 中使用对话框来指定 friend 的,看来我必须编写自己的 UI 才能做到这一点。或者?
最佳答案
通过具有 publish_stream
权限的 Facebook Graph API(fbconnect 的替代品),您只能将照片发布到用户的墙或用户的相册。
此外,API 不允许发送私有(private)消息。我不知道有任何 iOS 对话框可以帮助您执行此操作。
但是,您可能想看看在 Android 世界中称为 intents 的东西,您的应用会说我想让用户执行此操作,然后操作系统会为用户提供他们想要的程序选项如果有多个程序,请执行此操作。我在 iphone equivalent to android intents for opening other apps 上找到了这篇 S/O 文章.也许其中有些东西可以用于 iOS。
关于ios - FBConnect:如何显示标准 FB 对话框以发布图片和标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9139926/
我有问题,我想在那个应用程序中使用 FB 好友列表,我可以通过 FB SDK 检索 FB 好友列表...... 最佳答案 FB SDK 支持通过以下方式调用 FB graph api: - (FBRe
我有一个简单的视频,最后包含一个共享按钮,当用户单击共享按钮时,会打开一个带有社交媒体图标的模态框,例如用户可以将视频共享到 Facebook,现在我想要来自 Facebook 的回调响应视频分享后。
我收到常见的 JS 错误“ Uncaught ReferenceError :未定义 FB” 关于同一个问题有很多问题,我已经尝试了每个可用的解决方案 stackoverflow 但无济于事。显然,人
你好,我想知道如果我创建了一个 Facebook 页面(没有普通用户)是否可以获得 FB APP_ID,或者这个 ID 仅用于应用程序?谢谢 最佳答案 如果您是 Facebook 用户,请登录您的 I
我有一个客户已经有一个与他们自己的网站相关联的 Facebook 页面。我最终说服他们将开放图标签集成到他们的页面中,因为当任何人点击他们网站上的 Facebook Like 按钮时,它在 Faceb
我的问题很简单,FB Messenger如何知道谁与其他FB应用程序连接,我的意思是在iOS中,应用程序使用sandBox,但是当您在“正常”应用程序中作为“xy”连接并且打开Messenger时它会
这段最近工作完美的代码在与 FB JS API 一起使用时不再正常工作: placeOrder : function(order_info) { var onOrderPlaced = funct
我正在尝试从我使用以下代码的 facebook 广告 api 获取广告系列列表 $account = new AdAccount('act_' . $account_id);
我的控制台中有这条消息 FB.getLoginStatus() called before calling FB.init(). 我的代码 // Load the SDK Asyn
我知道有很多关于 Facebook 访问 token 的问题及其造成的痛苦,但尽管进行了大量实验并阅读了许多令人沮丧的模糊博客文章(FB 和其他),我仍在努力获得明确的答案根据我的需要。让我简要地分解
我查看了有关 stackoverflow 的各种文档和问题,但仍然无法弄清楚为什么以下代码不会触发任何 FB.Event.subscribe 事件 getLoginStatus。 (fun
我想要实现的是: 我有一个简单的 Facebook 分享按钮,取自 Facebook 开发人员。站点: 现在我在开始正文标记之前添加了同样取自 facebook 的 facebook 应用程序代码:
我想检查用户是否使用 Facebook JavaScript JDK 和 jQuery 登录 facebook。但即使超时 10 秒,我也会收到此错误消息: 在调用 FB.init() 之前调用 FB
我有一个正在编写的网站。 javascript SDK 有效 php SDK 有效 HTML 如下所示: 带有 fb-registration div 的注册页面 带有 fb-login-button
我正在尝试检查用户是否已使用我的应用登录,但我收到了 FB.getLoginStatus() called before calling FB.init(). 控制台出错。 setSize似乎有效(虽
FB.api 在 FB.init 之后立即调用时不起作用。这是我使用的代码片段: window.fbAsyncInit = function() { FB.init({ appId : w
我希望用户在单击我网页上的几个按钮之一时能够将一些图像发布到他们的 Facebook 页面。 FB.getLoginStatus(function(response) { if ( respon
我正在使用 PFFacebookUtils.logInWithPermissions 登录我的应用程序,但是,第一次登录实际登录工作正常,但出现 FB 错误 code = 2500 An active
我全新的工作充满了美妙和可怕的惊喜。这项工作最有趣的部分之一是增强、加速、使一切规模化的意愿。今天,第一个真正的问题。事情是这样的:我们得到最多 20 个列表元素,每个元素都显示自己的 Faceboo
我在这里使用 asp.net web 应用程序,我在我的网页中使用 2 个 facebook 插件。 Facebook 赞 Facebook 分享 对于 facebook 分享: Faceboo
我是一名优秀的程序员,十分优秀!