philippec / PhFacebook

MacOSX Interface to Facebook graph API
http://developer.casgrain.com/?p=107
Other
178 stars 44 forks source link

Invalid redirect_uri: Given URL is not allowed by the Application configuration #45

Closed nitingohel closed 9 years ago

nitingohel commented 9 years ago

Sorry to ask if there is minore mistake but i followed your suggestion step build framwork and add this in to my osx Window application. I also make sure that i added website at Developer.facebook page and there is i am setting the http://clopy.com/

and i setting as par your suggestion but i always get:

"error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration", "type": "OAuthException", "code": 191 } }

I do lots of google can you please tel me how to fix this issue. in code there is no any method for setting URl from code side there in framework only few method for get accesstoken and sendrequest.

philippec commented 9 years ago

I haven't used this framework in a while so it is possible that the method it is using is no longer supported. Feel free to poke around in the code and submit a PR if you get it working to your satisfaction.

nitingohel commented 9 years ago

Actually in too the documentation there said build Framework and use in to your project with release build and Debug build. i used that suggest code.

fb = [[PhFacebook alloc] initWithApplicationID: FB_APPLICATION_ID delegate: self];
[fb getAccessTokenForPermissions: [NSArray arrayWithObjects: @"read_stream", @"export_stream", nil] cached: NO];
[fb sendRequest:@"me/home"];

then what is the alternat way to use your library can you please suggest me.