Giter Site home page Giter Site logo

sohaibilyas / facebook-php-graph-sdk-examples Goto Github PK

View Code? Open in Web Editor NEW
225.0 225.0 218.0 145 KB

Try latest Facebook PHP SDK https://github.com/sohaibilyas/facebook-php-sdk

Home Page: https://sohaibilyas.com

License: MIT License

PHP 100.00%
facebook-api facebook-graph-api facebook-php-sdk

facebook-php-graph-sdk-examples's Introduction

facebook-php-graph-sdk-examples's People

Contributors

sohaibilyas 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  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  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

facebook-php-graph-sdk-examples's Issues

Error

Facebook SDK returned an error: Cross-site request forgery validation failed. Required param "state" missing.

Error : Facebook SDK returned an error:

Hello, I am trying to create a app on facebook canvas with the help of your videos on youtube. I have a SSL secured domain. (https://lifeok.cf)
I did everything perfectly as you shown on your video but I am getting an error "Facebook SDK returned an error:" , nothing details.
I find out that, the error is coming from here-

 catch(Facebook\Exceptions\FacebookSDKException $e) {
		// When validation fails or other local issues
		echo 'Facebook SDK returned an error: ' . $e->getMessage();
		exit;
	}

Please, help me in this issue.

top Friends

hello sir,
How could I find top friends using this api or how could I check who liked or commented on my posts

like publish post !

Hi sohaibilyas !

how to find liked publish post from url user or fbid ?

i want to build web stalk your crush.

thanks for help

automatic login

Hi is it possible that the user will not redirect to login to get the short live useraccesstoken?because in my website i have a form to be filled by the registerd users then when they submit the form it will also post to my facebook page. Is this possible?

Thank you in advance.

Login Problem

The code redirects to my app page and it is blank. Code Stops there. How to solve it.

Function mcrypt_create_iv() is deprecated

Deprecated: Function mcrypt_create_iv() is deprecated in /app/resources/library/facebook-sdk-v5/PseudoRandomString/McryptPseudoRandomStringGenerator.php on line 57

I got this error when use facebook php sdk v5 at PHP 7. any idea how to solve this issue ?

Email Permission is granted but email does not return

Even thought with all permissions granted, some user information are not returned.
It happens with permissions: email, friends and likes.
I've noted for those users these permissions are not returned, only firends can have information about the user, and the profile on facebook is displayed like that:
image

It was plausible the profile omited for non-friends could not return some info.
But, I had an user which the facebook profile is 'wide opened':
For this user, the permission 'friends' returned info.
But email was not returned.
It happens with 4 from 30 users in one day.
It is quite 12%.
I think it is a big issue @sohaibilyas .

image
image
image

syntex error on line 5

i have a version oh php 5.4.45

$fb = new Facebook\Facebook ([

"app_id" => "1754694404821834",
"app_secret" => "f90cb08fbd52a7cbcdd93c7562c74007",
"default_graph_version" => "v2.4",
]);

Facebook SDK returned an error:

when i using your code with facebook latest sdk for website login then it is showing this error

Facebook SDK returned an error:

and nothing showing after this error. so please check your code with facebook latest version it seem to be related the state return ID.

Thanks
Amit

Invalid Scopes issue

Hello, i'm trying your "live-video-api.php" but i'm getting this error message on FB:

Invalid Scopes: publish_actions. This message is only shown to developers. Users of your app will ignore these permissions if present.

How can solve this? Thank you

publish_action SDK ERROR

Dear sohaibilyas,
while I trying to post a link to my wall with using your code post-on-user-timeline.php ,
I got this SDK ERROR:
Facebook SDK returned an error: Unable to convert response from Graph to a GraphEdge because the response does not look like a GraphEdge. Try using GraphNodeFactory::makeGraphNode() instead.
what should I change in my code , to post on my timeline
?

For Sale Items Posts in Groups

Groups now have a "sell your item" button/function. Is there an update coming soon to post "for sale items" as well as mark them as "sold". Facebook remind you often to mark these things sold so they don't sit out there indefinitely, so I'm looking for a way to manage those with a CRUD like interface, but not sure how to access these types of posts. Thanks in advance.

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.