Wednesday, March 7, 2012

Sample application now available

There have been a number of requests for a sample application so I've put together a basic web application to show you how to do basic posting and authentication.

To use this sample site you will need to modify the application ID and secret in the web.config file as well as replace the url for authentication with the one that matches the location in which you are running it. This url for authentication must also match your settings in your app on facebook, otherwise facebook will not authenticate it.

Download Sample Application

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Currently, out of nowhere, wall posts are crashing. It has worked for months until today when I had a user try to make a wall post. Suddenly wall posts don't work.


    System.Exception: {"error":{"message":"(#100) actions should be a JSON-encoded dictionary with \"name\" and \"link\" keys","type":"OAuthException","code":100}}
    at Branches.FBAPI.Functions.BaseRequestClass.MakeGraphPost(String method, Dictionary`2 Values)
    at Branches.FBAPI.Functions.Posts.PublishCreate(String ObjectID, CanPost& Target)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Exception: System.Exception: {"error":{"message":"(#100) actions should be a JSON-encoded dictionary with \"name\" and \"link\" keys","type":"OAuthException","code":100}}
    at Branches.FBAPI.Functions.BaseRequestClass.MakeGraphPost(String method, Dictionary`2 Values)
    at Branches.FBAPI.Functions.Posts.PublishCreate(String ObjectID, CanPost& Target)

    Source Error:

    Line 1885: P.caption = "Join me!"
    Line 1886: Posts.PublishCreate("me", P)
    Line 1887: Dim PostID = P.id

    ReplyDelete
  3. Is there a way to make a wall post on a group's wall that I own instead of sharing it on my own profile. I would like to share something that posts to my company wall. Is this possible?

    ReplyDelete