Html 我想从我的博客链接到我的 Facebook 页面

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8500106/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 12:00:03  来源:igfitidea点击:

I want to have a link to my facebook page from my blog

htmlfacebookblogs

提问by Jenna Hammac

Every time I try to embed code that was recommended by another user, I get the same message: Could not retrieve id for the specified page. Please verify correct href was passed in. All I want is something on my page that a reader can click to take them to my Facebook page. What am I doing wrong?

每次尝试嵌入其他用户推荐的代码时,都会收到相同的消息:无法检索指定页面的 id。请确认传入的 href 是否正确。我想要的只是我页面上的一些内容,读者可以点击该内容将他们带到我的 Facebook 页面。我究竟做错了什么?

回答by Vamsi

You can create a personal username for your account on facebook, check Facebook Usernames general information, creating a username will provide you with a custom url something like

您可以在 facebook 上为您的帐户创建一个个人用户名,检查Facebook 用户名一般信息,创建一个用户名将为您提供一个自定义网址,例如

www.facebook.com/YOURUSERNAMEHERE

www.facebook.com/YOURUSERNAMEHERE

you can easily add this to your blog by using the following html

您可以使用以下 html 轻松将其添加到您的博客中

<a href="http://www.facebook.com/YOURUSERNAMEHERE">Follow me on facebook</a>

回答by Eric Yang

It would also be helpful if you post the code that you're trying to use currently, otherwise no one has any idea what you're trying to do.

如果您发布您当前尝试使用的代码也会有所帮助,否则没有人知道您要做什么。

If you just want a link in HTML to your facebook page, put this into your page:

如果您只想在 HTML 中链接到您的 Facebook 页面,请将其放入您的页面:

<a href="http://www.facebook.com/pages/xxxx/xxxxxx">My Facebook Page</a>

The section that goes within the quotes should be the URL you see when you navigate to your Facebook page.

引号内的部分应该是您导航到 Facebook 页面时看到的 URL。

回答by Igy

Are you talking about a Page or Profile? For Pages, the Like Box plugin is probably the best option, and lets people like the Page right from your website: https://developers.facebook.com/docs/reference/plugins/like-box/

你说的是主页还是个人资料?对于 Pages,Like Box 插件可能是最好的选择,它可以让人们直接从您的网站点赞 Page:https: //developers.facebook.com/docs/reference/plugins/like-box/

For your own Profile, there's Badges ( https://www.facebook.com/badges/) which you can use

对于您自己的个人资料,您可以使用徽章 ( https://www.facebook.com/badges/)

If it's your own Profile and you want people to Subscribe to you ('Follow') - there's a subscribe button you can use for this: https://developers.facebook.com/docs/reference/plugins/subscribe/

如果这是您自己的个人资料,并且您希望人们订阅您(“关注”) - 您可以使用订阅按钮:https: //developers.facebook.com/docs/reference/plugins/subscribe/

回答by lorde

i dont know why, but for some reason, you have to include the http:// before the link

我不知道为什么,但出于某种原因,您必须在链接前包含 http://