是否有可能把Facebook的按钮,像在移动应用中,在使用时,它会喜欢我的网站网址是什么? [英] Is it possible to put a Facebook like button in a mobile app and when used, it would like my website url?

查看:150
本文介绍了是否有可能把Facebook的按钮,像在移动应用中,在使用时,它会喜欢我的网站网址是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android和iPhone手机应用程序到我需要把一个Facebook像按钮用于营销目的。

I have an Android and an iPhone mobile app into which I need to put a Facebook like button for marketing purposes.

问题是,我不知道是什么,当用户从喜欢的移动应用里面的东西真是被人喜欢。我有两个应用程序(Android和iPhone)一个网站,如此看来,当一个用户喜欢从移动应用的东西这个网站应该很喜欢。

The problem is that I am not sure what is really being liked when a user likes something from inside a mobile app. I have a website for the two apps (Android and iPhone) so it seems that this website should be liked when a user likes something from a mobile app.

这是可能做到?

谢谢!

推荐答案

从我的经验,我知道,Facebook并没有离开你使用likeButton成美孚应用的可能性,他们不希望用户那些在每一个应用程序来发送垃圾邮件。

From my experience and what i know, Facebook doesn't leave you the possibility to use a likeButton into a mobil Application, they don't want the users to be spammed by those in every apps.

从我的角度来看,有两个解决方案,但也不是完美的:

From my point of view, there is two solutions, but neither are perfect :


  • 您使用Facebook OpenGraph,并创建一个网站对象类似的动作,你可以找到关于Facebook OpenGraph更多的信息上的 Facebook的文档 OpenGraph网教程和最后一个范例,更具体到iOS 。但是,如果我记得没错,你将无法创建一个名为动作喜欢,我认为Facebook将prevent它所以没有混乱的用户,但我不知道的话,那就是仍值得一试。

  • You use Facebook OpenGraph and create a like action for a Website Object, you can find more informations about Facebook OpenGraph on facebook documentation, OpenGraph web tutorial and the last one examples that are more specific to iOS. But if i remember right, you won't be able to create an action called "Like", i think facebook will prevent it so there is no confusion for the users, but as i'm not sure at all, it's still worth a try.

第二个解决方案是做一个简单的UIButton,当你点击它,你只是告诉你希望用户喜欢Facebook页面的网页视图。如果你想知道,如果用户喜欢你的页面,你总能为自己喜欢的请求,并设法找到你的Facebook页面的id在里面,只要用户没有退出的WebView。

the second solution is to make a simple UIButton, and when you click on it you just show a webview of the facebook page you want the user to like. If you want to know if the user liked your page, you can always make a request for his likes and try to find your facebook page id in it, whenever the user did exit the webview.

我希望我回答你的问题。

I hope i answered your question.

和如果有的话,你找到一种方法,使像(不是opengraph)一个真正的脸谱,直接在本机移动应用程序,我会在​​知道HOWTO非常感兴趣。

And if ever you find a way to make a real facebook like (not an opengraph), directly in a native mobile application, i would be very interested in knowing the howto.

编辑:

实际上,仅第二溶液会工作,如果是喜欢一个Facebook的fanpage,作为用于OpenGraph需要能够修改由页发送的元数据,以便它适合你对象的属性

Actually, only the second solution would work if it's to like a facebook fanpage, as for OpenGraph you need to be able to modify the metadata sent by the page so it fits the properties of your object.

该Opengraph解决方案只会工作,使一个假的象在自己的网页。

The Opengraph solution would work only to make a fake "like" on a webpage of your own.

这篇关于是否有可能把Facebook的按钮,像在移动应用中,在使用时,它会喜欢我的网站网址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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