Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am facing an issue with achieving a functionality while progressing on using Facebook SDk for C# and Fb integration.

I want to 'like' a PUBLIC page on facebook. I have searched a number of links but could not find any solution.

I actually want to pose a Like Button on my Application and achieve this functionality.

[Though FB also provides a LIKE Button of their own but if possible i would like to know how to achieve it manually.]

Though i am ABLE to get the 'total likes' of the page but POST is not working. When i tried to run the test query at Developer Console of facebook, i got the below response:
{
  "error": {
    "message": "(#210) Subject must be a page.", 
    "type": "OAuthException", 
    "code": 210
  }
}



I am currently trying this on a Windows Application (.Net 4.0), but Wanted to extend it to a Windows 8 phone App.


Thanks

Regards
Rohit
Posted

1 solution

I think i have found a solution in a PHP link.

like-posts-over-facebook-graph-api


Now I got this error:
{
  "error": {
    "message": "(#200) App does not have permission to make this call", 
    "type": "OAuthException", 
    "code": 200
  }
}


This requires extended permissions for your App for "publish_actions" and this require submission request to FB [ This is what I found while going through few more pages ] . I cannot make it to that as I was just testing this app and dont have a proper registered APP or a website.

So closing this question as I HOPE on some live APP i may found the above link to work as it is.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900