There is a commenting system in my php application. If user already logined in facebook then I have to hide Name section in my add comment form, If not it need to show Name and comment fields.
Also for displaying comments I need to show user’s facebook name and profile thumb.
I tried a lot in developer.facebook site.
Please help me.
Thanks in advance
With the facebook php-sdk, you can get the logged-in user’s info with this code:
giving of course if the user authorized your application.
You can also display the user’s profile picture with:
or you can just use the facebook comments plugin: http://developers.facebook.com/docs/reference/plugins/comments/