Get Leads data from facebook to integrate with CMS? - php

I want to retrieve the leads data from the facebook Marketing API and it should synchronize with the client custom CRM. I have gone through the guide given by facebook but I am not sure how to implement and get the result.
Is there a way to set up my code so that my leads data is directly triggered into the client CRM? Without using any third party tool?

Yes, you can do this through the Marketing API.
There is a full guide here:
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/

Related

How do i setup a api linkedin connection using oAuth and php

He there,
I am trying to get a grip on the API of linkedin. What i want to develop is a marketing-dashboard for clients with campagins and there analytics. The documentation on linkedin is not very helpfull (could be me thought). Do i have to be registered as a partner for this? And can anyone help me with some examplefiles or library based on PHP?
Unfortunately the Zoonman tutotial only shows the 'Authorization Code Flow'. For data of campagins and sponsered content on linkedin i need 'Client Credential Flow'. And as i suspected i do need to be partner first to be able to use the LinkedIn Marketing Developer Platform - API.

How can I access Shopify Customer API from a PHP application?

I have to consume Customer details by passing email id as a parameter.
I want this API to be called from my native PHP Code. How can I achieve this?
Do I need to do additional code/libraries to achieve this?
Have you looked at these 2 third-party libraries to interact with the Shopify API from PHP?
https://github.com/cmcdonaldca/ohShopify.php
https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin
They should allow you to retrieve customer details, after you setup your Shopify Partner account and obtain your API key/secret.

Logging in to other wesites using Facebook Account

I am developing an advertisement site in PHP, the user can only list there products by logging in using there account in the site. Also i need to have another option for users to login into the website using there Facebook account and hence advertise about their products. How can i implement? Do i need to create any application instance in FB for this? I am looking forward for valuable suggestions.
Create an app.
Look into authentication, and see which method (server-side vs. client-side) fits you.
Once you've implemented that, you can make graph api calls. https://graph.facebook.com/me gives you the user's basic details
Good luck.

Twitter REST API, update status?

I am wanting to allow a user to update their twitter status from my website. I was planning on using Twitter's #anywhere feature, but this was not a very friendly solution:
Take over 3 seconds to load
Makes 14 requests
Calls jQuery twice
Then I found the Twitter REST API: https://dev.twitter.com/docs/api
Using OAuth, I want the user to be able to login, and then update their status using that API. I've been trying to find tutorials on this, but I haven't found any that use the REST API to update the Twitter Status.
Does anyone have code for/know of a tutorial for what I'm looking for?
Just post the data to update api endpoint.
You can read twitter update api doc for details : https://dev.twitter.com/docs/api/1/post/statuses/update
And there is a open source twitter client written in PHP, named dabr. http://code.google.com/p/dabr/
Adam Green has a nice tutorial in PHP that walks you through everything from setting up your application on the Twitter developer site to posting your first tweet.

Google Contacts Data API and PHP

I'm developing a PHP application to retrieve the list of contacts from a GMail account. I'm looking for a solution which would enable the user of my application to provide the login and password to their Gmail account in my application (as opposed to getting redirected to Google) and then automatically do the retrieval. The retrieval process can be run in PHP or JavaScript (which would then feed the list of contacts back to PHP using Ajax).
Is it possible to do that? Which JavaScript API should I use for that? Can someone point me at the right chapter in Google Contacts Data API documentation?
This is really not advised - google provide OAuth for a reason - so that users won't have to give their credentials to 3'rd parties.
Check out http://code.google.com/apis/accounts/docs/OAuth.html
Speaking only for my self (and all other developers I know), having to hand over my credentials to 3'rd parties is a real no-no.
It would be best to use the Google Contacts Data API using JavaScript for your case.
I haven't tested it myself but it looks nice: http://gmail-lite.sourceforge.net/wordpress/
//edit:
You probably should use: http://code.google.com/apis/contacts/

Categories