Facebook喜欢登录页面 [英] Facebook like page that is behind login

查看:282
本文介绍了Facebook喜欢登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面上的很多图像,对于每个图像,我有一个Facebook的按钮。这个页面是登录后(你必须登录才能查看)。 Facebook正在共享到根页面的链接,因为我将登录后的每个页面重定向到根页面。我怎样才能解决这个问题,分享链接到网页?

I have a lot of images on a page, and for each image I have a facebook like button. This page is behind login (you have to be logged in to view it). Facebook is sharing the link to the root page, becouse I redirect every page behind login to the root page. How can I fix this, to share the link to that page ?

感谢

推荐答案

必须通过Facebook刮板才能访问页面,而无需登录。可以允许到刮刀的特殊访问,通过检测它的用户代理:

The page to be liked must be accessible to Facebook scraper without the need to login. You can allow special access to the scraper by detecting it's User Agent:

      facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)

这篇关于Facebook喜欢登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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