Welcome Guest, Not a member yet? Register   Sign In
Facebook api doesn't work in codeigniter
#1

[eluser]Riley123[/eluser]
I'm using Facebook class as a library, but getuser always returns 0 when i use Facebook library in codeigniter.

Using Elliot's library is also just redirecting to the login link with no Facebook login page.

If I run Facebook api test without using codeigniter framework everything works as normal.

Any ideas?
#2

[eluser]vbsaltydog[/eluser]
FB updated their API in the fall of 2011 to use openauth2, the CI FB library may not be current after these changes.
#3

[eluser]Riley123[/eluser]
It seems that query strings are causing the problem. Facebook wants to pass query strings back to the web app to let it know it's logged in.

How can i keep my nice urls and still work with FB query strings?
#4

[eluser]CroNiX[/eluser]
use htaccess to convert it to segments?
#5

[eluser]Riley123[/eluser]
yes using htaccess is one way, but I think I'm gonna try using curl.

this looks interesting:

http://ellislab.com/forums/viewthread/196914/





Theme © iAndrew 2016 - Forum software by © MyBB