Click here to Skip to main content
15,915,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo

I want to integrate the facebook with my application.

I got the app id and app secret from facebook.

I can login successfully in facebook using app id.

But facebook api can't redirect on my home page.


Regards
@harshad
Posted

1 solution

Whih SDK are you using?

You must be missing the redirect url parameter being passed to the facebook request. Check this blog for reference

http://www.facebooksdk.blogspot.in/[^]
 
Share this answer
 
Comments
Harshad Kathiriya 17-Apr-12 7:18am    
Hi
I can use this link http://www.facebooksdk.blogspot.in and found the FB SDK.

I can change the setting as per above reference.

I got the below error after execute the application.

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


Thanks
@harshad
bbirajdar 17-Apr-12 9:12am    
What is your redirect URL ?

It should be like http://localhost:portnumber/foldername/redirectpage.aspx

foldername is necessary.

Download the sample website from the blog and use it...
Harshad Kathiriya 18-Apr-12 0:18am    
http://localhost:5000/TestFolder/Index.aspx

it's my redirect url.
Harshad Kathiriya 18-Apr-12 0:20am    
Any configuration in facebook app at the time to create ?
Harshad Kathiriya 18-Apr-12 3:10am    
Hi

I can solved the problem.

Thanks
@Harshad

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