允许在社交媒体上共享受密码保护的页面吗? [英] Allow a password protected page to be shared on social media?

查看:84
本文介绍了允许在社交媒体上共享受密码保护的页面吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个受密码保护的网站,用户可以在其中创建个人资料并添加照片.该站点使用PHP和Mysql存储用户数据和图片.

I have a password protected site where users can create profiles and add photos. The site uses PHP and Mysql to store user data and pictures.

任何人都可以告诉我,我如何允许用户在社交媒体(主要是Facebook)上共享特定页面,该页面允许具有链接的其他人查看该特定页面,即使该页面尚未创建,也只能查看该页面.我的网站上的帐户.

Can anyone tell me how I might allow users to share a particular page on social media (mostly Facebook) that would allow others with the link to view the particular page, and only that page, even though they have not created their own account on my site.

我不知道如何完成此操作,因此任何建议都将不胜感激.

I can't figure out how this is done so any advice would be really appreciated.

推荐答案

发布的链接必须是公共的,并且没有任何密码保护,否则Facebook将无法解析Open Graph标签.如果您希望其他用户能够查看该特定页面,则需要在URL上添加一个标志-这也将使Facebook可以访问Open Graph标签.

Published links must be public and not behind any password protection, or Facebook will not be able to parse the Open Graph tags. If you want other users to be able to view that particular page, you would need to add a flag to the URL - which would also allow Facebook to get to the Open Graph tags.

例如:https://yourdomain.com/somelink/?facebookshare=true

如果存在GET参数,则显示页面并忽略用户授权.

If the GET parameter exists, show the page and ignore user authorization.

这篇关于允许在社交媒体上共享受密码保护的页面吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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