开发者

Adding a Like Me button to my website

I am adding this:

<iframe src="http://www.facebook开发者_Go百科.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fourdailybreaddesigns&amp;width=175&amp;colorscheme=light&amp;show_faces=true&amp;border_color=blue&amp;stream=true&amp;header=true&amp;height=590" 
        scrolling="no" 
        frameborder="0" 
        style="border:none; overflow:hidden; width:175px; height:590px;" 
        allowTransparency="true"
        >
</iframe>

and getting this error message:

Could not retrieve id for the specified page. Please verify correct href was passed in.


Your URL should also contain the ID for your site, not just:

http://www.facebook.com/ourdailybreaddesigns

EDIT:

On second though, that a profile, not a site? Probably why it's not working.

Let me put it this way: You can't have a likebox because it's not possible to "like" your profile.


THe HTML is fairly simple:

<div class="fb-like-box" data-href="facebook.com/CNN"        
data-width="272" data-height="500" data-show-faces="false" data-stream="true" 
data-header="false"> </div>

I have a similar situation of handling such feed ERROR when the URL/HREF is not right and feed is empty. e.g

<div class="fb-like-box" data-href="facebook.com/CNNNNN"        
data-width="272" data-height="500" data-show-faces="false" data-stream="true" 
data-header="false"> </div>

How to handle the empty FB feed. I dont want this error to be displayed:

"Could not retrieve id for the specified page. Please verify correct href was passed in."

(No intention to hijack this thread, it actually solves the same problem at the end of the day)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜