GithubHelp home page GithubHelp logo

puneetkay / facebook-php-codeigniter Goto Github PK

View Code? Open in Web Editor NEW
79.0 20.0 66.0 163 KB

(DEPRECATED) Facebook PHP SDK for CodeIgniter based on Facebook PHP SDK (v.3.2.3)

Home Page: http://puneetk.com/facebook-php-codeigniter/

PHP 100.00%

facebook-php-codeigniter's Introduction

Facebook-PHP-CodeIgniter (DEPRECATED)

This repo is based on Facebook PHP SDK (v.3.2.3) Link: https://github.com/facebook/facebook-php-sdk Facebook PHP SDK (v.3.2.3) has been deprecated. I'll update this to latest SDK as soon as possible.

Demo

http://puneetk.com/facebook-php-codeigniter

Usage

The config file is a good place to start. All you need to do is enter application id and secret.

$config['appId']   = 'APP_ID_HERE';
$config['secret']  = 'SECRET_HERE';

Author

Puneet Kalra

Contributors

License

Copyright (C) 2013 Puneet Kalra ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

facebook-php-codeigniter's People

Contributors

puneetkay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facebook-php-codeigniter's Issues

parseSignedRequest returns incomplete response

Hi,

Great work but I have one big problem.

After this bit of code:

list($encoded_sig, $payload) = explode('.', $signed_request, 2);

// decode the data
$sig = self::base64UrlDecode($encoded_sig);
$data = json_decode(self::base64UrlDecode($payload), true);

var_dump($data) prints this out:

array(3) { ["algorithm"]=> string(11) "HMAC-SHA256" ["issued_at"]=> int(1402225671) ["user"]=> array(3) { ["country"]=> string(2) "rs" ["locale"]=> string(5) "en_US" ["age"]=> array(1) { ["min"]=> int(21) } } } 

So, no user_id and some other data missing as well. From what I see in the docs, it should return something formatted like this:

{
"algorithm": "HMAC-SHA256",
"expires": 1317243600,
"issued_at": 1317239909,
"oauth_token": "",
"page": {
"id": "",
"liked": false,
"admin": true
},
"user": {
"country": "in",
"locale": "en_GB",
"age": {
"min": 21
}
},
"user_id": ""
}

The app is closed to the public and I'm using my administrator account to test. The 'approve app' dialog never came up. as for login permission, I didn't add any in addition to the ones that are approved by default (email, public profile, user friends).

Any ideas what might be wrong?

Thanks,
Jovan

Demo not working

Facebook return error message for incorrect setup.

Message: "App Not Setup: The developers of this app have not set up this app properly for Facebook Login."

login not working anymore.

HI sir, im using your library. but this day im not able to perform login facebook i dont know why.. all my project is not working anymore hope you can help me thanks !

Logout is not working

Hi,

I have used the facebook login code devloped by "Puneet Kalra". But after implementation Logout is not working. Can you please tell me why it is.
Please reply ASAP.

Thanks

Login seems not work at first time

At first time click on "Login" button, page is refresh and show "Login" button again (the same happenes on the Demo). So we have to click "Login" one more time for logging in. From the second times, it works properly.
How to fix this, please help!

Thanks and regards!

Fatal error:

Fatal error: Call to undefined method MY_Loader::_ci_load_class() in /var/www/html/flogin/application/third_party/MX/Loader.php on line 154
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/flogin/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 569

Backtrace:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.