Facebook extraction using R. ( For beginners of Facebook App development). 
----------------------------------------------------------------------------------------------

It took me lot of time to authenticate with Facebook when i was trying to extract data from facebook using Rfacebook package in R language.

An important step which is not documented properly while authenticating our APP using R code. After creating the Application, Go to Settings and click on "add platform". Their you will find a textbox with name "Site URL"

 fbOAuth(app_id = "XXXXXXXXXXXXXX",app_secret = "XXXXXXXXXXXXXXXXX")

When we run above code, on console with get a small link. "http://localhost:1410/ ", This link has to be pasted in  Site URL text box in App settings and saved. After we do this, we should press "Enter" on the R console, which lets this API authenticate the APP on Facebook. Once this is done the APP is authenticate and a browser tab opens and if everything goes fine, it gives a message saying, "authentication successful, close this window and go back to R"




Comments

  1. When we do Add Platform on the setting page of App, it asks for options of platforms, Please chose "Website",
    after that it will have the textbox with name "Site URL". Page the URL "http://localhost:1410/ " in that and save it.

    ReplyDelete

Post a Comment

Popular posts from this blog