Separating Facebook App Insights - php

We have a PHP app that uses the graph API to post videos and photos to a users timeline.
We can gather all insights for the app which is great but need a way to separate them based on which customer is making use of our service. We we use the graph API to gather the insights.
Can this be done?

Related

count number of tweets for a specific hashtag in real time

how can you count the count number of tweets for a specific hashtag on twitter? is there a way to avoid php and creating twitter app on the twitter developer site?
i might want to use go or c++ instead of php.
Thanks,
Geri
In order to count Tweets in real-time, you will need to use the Twitter Streaming APIs, in particular the statuses/filter endpoint. Using the track parameter with the hashtag you are interested in, you will receive matching Tweets in real-time.
In order to get started, you will need to create credentials for your Twitter app on https://apps.twitter.com/, then consume the API from your favorite language. The fastest way is to use an existing library which will handle the authentication and the connection to the Twitter API for you.
If you want to use Go, I definitely recommend twittergo by #kurrik which supports the Streaming APIs. For other languages, you can take a look at this page on Twitter Libraries.
You can also use tweepy a python API to access twitter APIS . But first you should have twitter streaming API access for that you should have an account at apps.twitter.com
You will always need to create an app on the Twitter Developer portal https://apps.twitter.com/ as this is where you get to manage your API OAuth keys. As Romain says, the best option here would be to use the Streaming API.

Twitter starem API not giving any output or error

I am trying to create a social application based on hashtags of twitter. My aim is to find how many tweets, how many users, top ten tweets users, top ten influencing tweets based on no of re tweets or interactions using Twitter live stream API for a Hashtag.
So i created twitter application and i am able to login, able to get user timeline and tweets of user. But i am not able to work with live stream API. I am posting my code below about how i am trying to access tweets related to a hashtag.
$data = $connection->post('https://stream.twitter.com/1.1/statuses/filter.json?delimited=15&track=Rajpal Yadav');
Where $connection is working fine i tested it.
Try out new Twitter API from https://dev.twitter.com. This document explains how to use Embedded Tweets on your website, and also how developers can integrate Embedded Tweets in to their applications through their new API.

Is there any good totuiral to facebook API and is it possible to get the friends list of the user in my site?

I want to build a website that you can login with your facebook account.
what tutorial or any good beginner's book is there on this issue.
Is there any good sample of source code for this use
can I get the friends lists of my users and split it to males and females?
what is the difference between GRAPH and Facebook API?
Facebook have a few methods for integrating facebook in websites, check out the Facebook for Websites tutorial.
You have a few ways to implement this using the tools facebook provides you with, for example you can use the Registration Plugin (you can find code & examples in this tutorial).
If you have a facebook application and a user authorizes your app, then you can get the list of his friends. Without asking for specific permissions though all you will get is the their names/facebook ids. If you need more than that check out the Permissions documentation (2nd column refers to the friends).
Both things are the same, you just gave them different names.. It's called the Graph Api, there's no other "facebook api". This graph api also supports FQL in case the api alone is not enough for what it is you need.

Twitter Streaming API

I want to use Twitter's Streaming API to collect all of the tweets of users signed onto my website - of course I would have an oauth token and secret for them, but I want to store their tweets as they make them. Is that possible with the Streaming API? If so, can anyone point me to some PHP library that will help me implement such a task? I tried looking in to Phirehose, but I don't understand how to use that library to get the feeds of all the users signed up on my website. Any help would be greatly appreciated.
Take a look at the 140 Twitter Server.
Adam creates a lot of great helper code around the twitter API, a lot of great articles too.

Facebook notification on third party software

Is there a fb api that allows user to get fb notification or latest wall post by friend on their own website? this means that the software will requires user fb credential.
If you are trying to create your own site that gets data from the users latest wall posts, you can use the Facebook Graph API https://developers.facebook.com/docs/reference/api/
To pull most recent wall posts (in JSON format), use:
https://graph.facebook.com/me/feed?access_token=<UserTokenHere>
The Facebook Graph API site above gives lots of good info on how to use this. If you are trying to do something else, please clarify your question.
Cheers!

Categories