Facebook自己的ios应用程序的一个应用程序的Facebook页面的按钮 [英] Facebook Like button for one facebook page of an app from it's own ios app

查看:129
本文介绍了Facebook自己的ios应用程序的一个应用程序的Facebook页面的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Like Button在我的ios本地应用程序中显示,该应用的用户已经通过Facebook帐户连接到应用程序。

I am looking for Like Button to be shown in my ios native app, users of that app have already connected to app via facebook account.

有几个问题相关的Facebook Like按钮在stackoverflow,但这些不是特定于授权的单一的Facebook页面的应用程序。

there are several questions related to Facebook Like Button on stackoverflow but those are not specific to authorized single facebook page of the app.

根据Facebook的官方文档,Facebook页面不能被喜欢通过内置动作o打开图表api。

According to official doc of facebook, facebook pages can not be liked via built-in action o open graph api.

但是,当用户点击按钮时,只需要用户喜欢的该应用的一个官方Facebook页面。我不希望用户远离应用程序,或者在网页视图中重新登录,就像Facebook页面一样。

But want only one official facebook page of that app to be liked by user when he hits like button. i don't want user to navigate away from the app or login again in web view to like facebook page.

是否可以喜欢应用的Facebook页面,而不推荐用户再次在webveiw中登录?

is it possible to like app's facebook page without promoting user to log in again in webveiw?

结果

1。 https://stackoverflow.com/a/5837036/1632984

2。 wallacer评论

一般的共识似乎是你不能代表用户喜欢一个页面,但是我只是像我的一个页面一样有一个ios游戏。极限道路之旅成功地让你喜欢自己的页面希望我现在更加注意... - wallacer

"the general consensus does seem to be that you can't like a page on behalf of the user, however I just had an ios game like a page on my behalf. Extreme Road Trip successfully manages to get you to like their own page. I wish I'd paid more attention when I did it now..." – wallacer

推荐答案

这还不能完成直接使用图形API(据我所知)。您可以做的是打开一个网页视图到您希望用户喜欢的页面。如果您喜欢自己的应用程序或某些东西,当他们关闭网络视图(您必须提供一个关闭按钮)时,您可以使用图形API来检查他们是否喜欢您的应用页面。据我所知,这是当前最好的解决方案 - 似乎是手机游戏采用的方法。

This still can't be done directly using the graph api ( to the best of my knowledge ). What you can do is open a webview to the page you want the user to like. If you're rewarding their liking your app or something, when they close the webview (you'll have to provide a close button), you can use the graph api to check whether they like your app page. As far as I can tell this is the best current solution - and seems to be the approach taken by mobile games.

那就是说,我没有使用 Facebook SDK 3 ,所以可能有东西可以帮助你。

That said, I haven't used Facebook SDK 3 yet, so there may be something in there that could help you.

这篇关于Facebook自己的ios应用程序的一个应用程序的Facebook页面的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆