简体   繁体   English

Facebook喜欢按钮iOS

[英]Facebook like button iOS

Follow the docs ios like-button I can create facebook's like button into my app. 按照文档ios的“赞”按钮,我可以在我的应用中创建Facebook的“赞”按钮。 My code as below: 我的代码如下:

FBLikeControl *like = [[FBLikeControl alloc] initWithFrame:CGRectMake(200, 110, 250, 250)];
like.likeControlStyle = FBLikeControlStyleBoxCount;
like.objectID = @"https://openmerchantaccount.com/img/8a0e730c-bba3-43f4-9ea1-525c13917980-original.jpg";
[self.view addSubview:like];

Then I can like the page which had objectID as above. 然后,我可以喜欢上面具有objectID的页面。 But I have a question that, will it (like button) have any value when the image link as above I never post to Facebook page? 但是我有一个问题,当上面的图像链接从未发布到Facebook页面时,它(像按钮)是否有任何价值? And what is the purpose of the like button when let users click the like button into my app?(sorry,it maybe a naive question but I really don't understand). 让用户在我的应用程序中单击“喜欢”按钮时,“喜欢”按钮的目的是什么?(对不起,这可能是一个幼稚的问题,但我真的不理解)。

From what I can understand of your question. 从我能理解你的问题。

The purpose of the like button is that the user "likes" the image, but it is seen as a page. “喜欢”按钮的目的是用户“喜欢”图像,但是将其视为页面。 Facebook may display the user's activity to their friends news feeds as well as the user's activity feed. Facebook可以将用户的活动显示给他们的朋友新闻提要以及用户的活动提要。

You can also use the like feature as a small widget on a page to show that "x people like this page including a, b and c" where x is the total number of likes for the objectID and a, b and c being friends of the logged in user. 您还可以将Like功能用作页面上的小窗口小部件,以显示“ x个人喜欢此页面,包括a,b和c”,其中x是objectID的喜欢总数,a,b和c是其好友登录的用户。 This helps Facebook with advertising based on similar interests. 这可以帮助Facebook进行基于相似兴趣的广告。

Just because the page is not posted to Facebook, doesn't mean that it will not appear on Facebook in other means 仅仅因为该页面没有发布到Facebook上,并不意味着它不会以其他方式出现在Facebook上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM