Get Twitter Mentions for not authenticated user - php

when I look at the API Docs of Twitter for mentions it says the following
Returns the 20 most recent mentions (tweets containing a users's #screen_name) for the authenticating user. The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for...
However, another site I found gets the mentions without having the user authenticated.
How exactly do I get those mentions? From the picture I posted it looks like the site gets only the public data, so how does it get the mentions when the API states that the mentions are only for the authenticating user?

I would imagine they're using the Streaming API to access all tweets and process them, as this would allow them to see how many tweets mention that particular user.

Related

How to get the "publish_post" equivalent

Scenario
I'm building an application that needs the ability to post to users wall (personal profile) on behalf of a user on facebook. I remember before the way that I would do it is request a permission "publish_actions" but reading through their documentation i came to this page:
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes/#login-4-24
which states that that is being deprecated.
They recommended an alternative which is using their sharing product found here but this seems like it would break one of the functionalies of my current application (I dont want to share content i want users to post it to whenever they choose to on whichever account they choose to).
Question
Is there a way to get posting to a users wall and NOT an event, page or group. If i'm correct I can still post data to events, pages and groups via API as normal but to a users wall its different? I need to post on their wall via api but i can't seem to find the permission.
My facebook api graph version for my app is 3.0 and im using their PHP SDK to make the requests.

Get my posts on facebook manage page

I need get ME posts in one of my manage pages, with the new version of facebook sdk.
Example:
I'm manage on Page A, and add a post in my name Adexe Rivera, and in this page there are a lot of posts. So I want to filter only posts by Adexe Rivera.
I know for get posts on pages it's necesary /page/feed, but I need add the filter from user.
I tried with Graph Api Explorer, with this FQL:
SELECT source_id, actor_id, post_id, target_id, message FROM stream WHERE source_id = "PAGE_ID" AND actor_id = "MY_ID"
and get the information that I'm searching.
But I know that since v2.0 FQL not works for sdk, so that I need it's make the same like FQL works in this version of graph
I already tried what documentation said, but not get my posts.
A user access token is required to retrieve posts visible to that person.
Thanks in advance
Filtering is not possible, you can only use the existing endpoints and filter on your own after getting the entries. There are several different endpoints, make sure you are using the correct one. They are all documented very well: https://developers.facebook.com/docs/graph-api/reference/v2.4/page/feed
Also, an App Access Token should be enough to get access to the endpoints if it´s a public post on a non-restricted Page:
An access token is required to view publicly shared posts.
If you don´t know about Access Tokens, read those articles:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Finally, it is not possible to use FQL giving me the expected result, so getting the "from" field in the /PAGEID/feed endpoint, and filtering the results, I get what I wanted.
Thanks for your answers and for their penalties, I have spent several days trying to maximize the performance of the SDK facebook.
Cheers

Facebook API - Access Token Delivers Inconsistent Information

In Facebook's API, the Graph Explorer(https://developers.facebook.com/tools/explorer) provides data on requested queries using Facebooks graph structure. When choosing the three fields,"ID, name, posts", the explorer returns all of the users posts of the user's wall, filtering out any activity the user has done anywhere else. It is strictly what is on the user's wall.
The problem here is that whenever I make a new application and test the applications data results using the Graph API explorer I always get similar, but extra information. The extra information is what's included in the user's, "Recent Activity", feed.
In the graph explorer if you look at the top there is a choice for an application, you can switch to the application you've made. Then when requesting an access token, you can select the, "read_stream", permission which allows an application to read a user's stream data i.e wall, news feed, etc.
The GET requests made by the Graph API Explorer application deliver different results then a custom made app using face book's developer API.
I've tried to locate the problems within the access tokens, but I've had no luck.
The access token is calculated based on the permissions you request.
Every time you change the permissions you are asking for, the access token will change.
I'm almost sure that Facebook Debugging App requests for some permissions you are not requesting, therefore you will not be able to replicate the results you get with their app in yours.

Can't delete album with Facebook graph API [duplicate]

I've google it and also looked some related questions here in SO, but didn't found an answer. Is there any way to delete an album from FB via Graph API call. I'm making DELETE request to https://graph.facebook.com/ALBUM_ID with corresponding access token, but it returns me the following: (#200) Application does not have the capability to make this API call.
Just as the error says - your application can not perform these actions. In actual fact - no applications can delete photo albums. It is a limitation by design of the API.
If anyone finds some evidence to prove me wrong - PLEASE dont keep it to yourself! ;)

Write a users news feed with the facebook api

How would you use the facebook api to get a user to login with the facebook login button and then use the api to get that user's news feed and write it out on the same page
First, learn to use Graph API Explorer, it solves these issues 9 times out of 10, until you're stuck with using FQL. You can access this via https://developers.facebook.com/tools/explorer
To answer your question, you can get the user's news feed by hitting.
https://graph.facebook.com/userid/home?access_token={access_token} to pull in a user's friend's updates. Note that this requires the extended permission of "read_stream".
To get a user's own status updates, change it to /status?access_token={access_token} - this requires the permission of "user_status".
Parsing it to write it out is a different Q&A altogether. You'll want to look up JSON or XML parsing depending on your setup.

Categories