elliothaughin / codeigniter-facebook Goto Github PK
View Code? Open in Web Editor NEWFacebook Graph API, OpenGraph, and Connect for CodeIgniter
Facebook Graph API, OpenGraph, and Connect for CodeIgniter
I am using the latest codeigniter and latest of codeigniter-facebook and I have my app setup but when I click login it goes to facebook then back to my site and still has the login link. I saw a similair issue but it was centered around a WAMP setup. I am on a LAMP setup. You can test it here: http://dev.digital-focus.us/test/blah/facebook_test I will leave it up and wait for a response
Facebook library function set_callback strips all queries. Why? I need to include one for my callback so that I can redirect the user back to where they came from. I could, of course, just remove the _strip_query part, but I'm wondering if there is a particular reason for it? Security issues? FB policy?
I've read your blog had crashed. I'm trying to build a site, that should enable users to comment, using their facebook accounts. Could you try to get the Documentation up just somewhere? :)
I'm very thankful you've done this cool piece of code already.
i had to change the extends line and the parent:: call to get it to work with the new name of the CI controller
<?php
class Test extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->add_package_path(APPPATH.'third_party/haughin/codeigniter-facebook/');
$this->load->library('facebook_connect');
}
Hi there,
I've really looking forward to trying out your Facebook-CodeIgniter integration, but it seems like it doesn't work. Isn't it possible to try it out while working on localhost if I just register my app on facebook with http://localhost/ as URL or is it required to be online on a real domain before it works?
The issue is that I can see the login link and when I click it, I sure enough gets redirected to Facebook for login and permission granting. When I get sent back to my app on localhost, it shows my FB picture and says I'm logged in. However, it still shows the "Login" link and not anything else. :-/
Any idea what I'm doing wrong or if it it's a bug with CI 2.0?
When you use this in a canvas app in an iframe, the page just reloads and reloads and reloads... but the PHP never picks up that it is logged in... get_user_id() just returns NULL
Occurs in: all browsers except firefox (3.6.6 on mac)
Is anyone else having this problem?
See login, authorization of application works, then get redirected with token in url and stuck.
Any chance of you merging the pull requests any time soon? Is the library still maintained?
Hi Elliot, great Facebook library - it was a breeze to set up and your code looks really solid!
So far I've gotten the user to login and authorise just fine - that part works great. The problem comes when I try to make any API calls.
I've added the following function to facebook_test.php
controller:
function test()
{
$status = $this->facebook->call('post', 'me/feed', array('message' => 'Hello, World!'));
}
Perfectly valid, I think you'll agree - yes? But this is the error returned by mysite.com/facebook_test/test
exception 'facebookException' with message '0 | Request Failed' in /Users/Jack/Sites/MySite.com/application/libraries/facebook.php:234 Stack trace: #0
/Users/Jack/Sites/MySite.com/application/libraries/facebook.php(194): facebookConnection->_getResponse('Resource id #14') #1
/Users/Jack/Sites/MySite.com/application/libraries/facebook.php(174): facebookConnection->_addCurl('https://graph.f', Array) #2
/Users/Jack/Sites/MySite.com/application/libraries/facebook.php(66): facebookConnection->post('https://graph.f', Array) #3
/Users/Jack/Sites/MySite.com/application/controllers/facebook_test.php(73): facebook->call('post', 'me/feed', Array) #4 [internal function]: Facebook_test->test() #5
/Users/Jack/Sites/MySite.com/furnace/core/CodeIgniter.php(297): call_user_func_array(Array, Array) #6
/Users/Jack/Sites/MySite.com/index.php(163): require_once('/Users/Jack/Sit...') #7 {main}
Is this an issue with the library and my PHP configuration or something? Any API calls reproduce this (get, post, etc.). The returned error isn't very helpful either.
To confirm, I have this in my configuration file:
$config['facebook_default_scope'] = 'publish_stream,email';
I just loaded this into my CI 1.7.2, made all the changes except for the uri_protocol (which I left auto, since changing it to path_info is not an option for me). It seems to work great. Why is path_info needed as uri_protocol for CI 1.7.2?
Ran though a quick setup and clicking the login hyper link sends me to face book with a simple "An error occurred. Please try again later" message.
Hi, I don't know where to post this query hence posting here.
I am using CI-2 with elliothaughin/codeigniter-facebook release on February 15, 2011.
i dont find anywhere how to make FQL query. Will anyone throw some light on that ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.