Facebook plugin don't show right when user is logged as a page

I have noticed that Facebook plugin don't show right when user is logged as a page. The plugin shows a message that sound like "Back to USER to use this plugin".

I want to show the plugin only if my visitor is a USER (not a page or app).

I implemented the code according to the specifications of facebook, but I can not find the php or javascript snippets that allows me to create this filter.

Can someone help me? thanks


    method: 'fql.query',
    query: 'SELECT type FROM profile WHERE username IN (SELECT username FROM user WHERE uid=me())'
    function(response) {
        (response.type == 'user') ? $('#fb_elem_id_here').css('display', 'inline-block') : $('#fb_elem_id_here').css('display', 'none');


I found a workaround:

FB.getLoginStatus(function(response) { **DO_SOMETHING** })

only DO_SOMETHING if user is logged as a USER or when user is no logged at all, than you can filter your action.

The initial suggestion does not work. Context is of simple web browsing: user never connect to the FB app. FB information (I think) come from browser cookies.

Need Your Help

Difference between eclipse europa, helios, galileo

eclipse version eclipse-3.5 eclipse-3.6 eclipse-europa

What is the difference between versions of Eclipse (Europa, Helios, Galileo)? Which is the best for desktop application?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.