I want to integrate Facebook functionality into my Silex website.
To be more precise the ability to sign in with Facebook.
Once the user is signed in I want to also be able to make API calls to Facebook to post or attend events on behalf of the logged in user.
Using Composer I've added the Facebook SDK into my project but now I'm kind of lost on how to proceed with coding the login (auth) part and how to make Facebook Graph API calls and display the returned data.
I've started with the Silex Kitchen Edition (https://github.com/lyrixx/Silex-Kitchen-Edition) as the base for my project, since I'm new to Silex development!
Are there any tutorials available? (I can't seem to find any!)
Would be really helpful if someone could help me out or point me in the right direction.
Thanks!
Related
I can't find a usefull guide online.
I know i need to create an app from developer fb page, but i don't know what fields and permission i need.
I need to post new articles to a my own page using php.
I read about graphapi page to request token pages but documentation is very bad!
Any suggest how to start with the correct app creation?
For you to create an application using Facebook SDK, you will need to install its dependencies with PHP SDK. THis Getting Started tutorial, should help you achieve this goal.
Once you have done that, there are some guides and articles that might help you start your own development of application, that you can access using the below links.
How to Develop Facebook App with an Example using PHP SDK
FacebookApp for the Facebook SDK for PHP
Facebook SDK v5 for PHP
Hope this helps!
I am currently building an analytics dashboard that consumes client data from various API's (Google Analytics, Mailchimp etc).
Now I'm at the point of hooking it up to the Facebook Graph API (v3.x) and I am currently able to pull in a pages fan_count utilising a Long Lived token whilst the App is in development mode.
My question is - this app isnt going to be publicly accessible and only provides my Laravel installation with this fan_count metric so do I need to worry about putting it into Live mode and submitting it for review? As far as I understand, I can dynamically request the access to token to be refreshed anyway so in theory I dont see any reason for me to ever need to make the app 'live'.
Just looking for confirmation that my understanding is correct.
Thanks
Jay
Hi I have a website that I am creating at the moment I have just created a dashboard for admin users I was wondering is there a way I can embed a Google analytic's dashboard or the elements of the dashboard into my own website.
My initial thought would be an i frame of the web page and then getting the user to sign in
I have looked at different questions surrounding this and people are being told to look at the Developer Guides and the implementing the API into their site, Can I do this ??
My website is PHP based with some HTML I am not sure if I am using a framework that the analytics can be implemented into because at the moment I'm currently using bootstrap for the admin dashboard the rest I have hand coded.
Any guides any examples of people doing this themselves that would be much appreciated.
I would recommend you look into using the Google Analtyics API with a service account. You will only be logging into your own data so there is no need to go though the full Oauth2.
The most current version of the Google PHP client lib can be found here on github under examples you want to look into the service-account.php it should show you how to get working with a service account.
Note: Unfortunately the hello analytics tutorial is out of date and uses the old client lib, don't go there. I have been told they are working on an update for it.
I dont have any idea about IOS development, and I code the web services for IOS apps. We have been given an app that should support login with facebook and login/register of its own.
Now, implementing login/register for the app is not an issue, but I need to know two things:-
1.) How do we implement a login in the IOS app using facebook.
2.) The app should be able to show and save certain events on facebook.
How would I/we implement these two functions. Do we implement these using web side code or IOS code..
Can anyone point me in the right direction..
Thanks
PS: I got to know about facebook-connect while I was selecting the tags ;)
Check the Facebook SDK. They have some really helpful links and tutorials. The Facebook repository from which you can get the ios SDK from is at this link. Also Facebook's developer portal is an awesome place to get started. If you have any further questions please let me know, I might be able to answer them.
I've seen this question earlier on your website, but it didn't quite help me out yet...
Here is what I'm trying to achieve:
I have a Content Management System (PHP) that is installed on the server of the various websites of my customers. Whenever a user posts a new message on his website, a shorter version of this message is sent to social media sites. Right now, this is possible with twitter (using the OAuth library). But I would want it to work with facebook too....
When I create an app in Facebook i HAVE to assign ONE return URL. But because the to-be-used CMS system can be anywhere, it's quite useless to me?
Or is there a way to make this work?
Best regars, Robert
I'm not sure your exact need for the return URL here. However, having the CMS communicate with Facebook from the server side would be performed with the Graph API with the OpenGraph protocol. This sounds like what you are doing with Twitter's OAuth.
You can then code your CMS to use your API credentials and never leave the CMS server. There is even a PHP SDK available for Facebook which sounds like it would integrate well for you.
If the CMS is at a different URL for each individual, then they each need to create an app on their Facebook profile to add the communication in this method. Because Facebook requires the basename of the URL to be the same by design, for security. This is typically performed by enabling the end-user to configure their own "app" in their profile for communication and is very commonly done with Wordpress applications for the same purpose.