php twitter grab retweet user info - php

i am working on a project in php.
When we post something on twitter, i want to grab the users who have re-tweeted my tweet and store it in my database. I want to work in php and mysql.
If I post a question on my tweet, i want grab the answers and save the userinfo of all the users who gave the right answer.
Any suggestions on how to get started?? Thanks :)

Here is a full twitter API class that someone has built that might be useful as well.
http://brandontreb.com/the-only-twitter-api-php-class-you-will-ever-need/
UPDATED:
Here is a RESTful API service for pulling retweets of your items:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retweets
You can use a pre-existing class or build your own. It will most likely require cURL and XML knowledge. But if you understand PHP, you should be able to knock this out fairly quick.

Related

How to extract data from facebook api or using php sdk for Job applications?

I did lots of research to find the proper guideline to get a few thing done but seems like really hard. All I am asking is below:
Anyone know in php how to extract posted jobs?
How to get job applications like all the users applied for job?
Where to start my code in php?
I know all below:
business manager id
app id
app secret key from my created app.
but I don't know how to get the pageID?
I have also found this URL to get the job applications: job applpications
but don't know how to perform from the above URL.
Please give me some guideline here as I am completely new to the Facebook API. Also, please if someone can provide me some starting point of php code to begin with my 1st and 2nd question.
Also if you check below image then it's showing that you can get applications from job:
There is no publicly available Jobs API. Reading job posts via the /feed endpoint is also not supported.

How to use Reddit's POST api?

I have managed to grab data from Reddit easily, displaying all links that users have submitted to a sub-reddit. What I want to achieve now though is to allow users of my site to login to reddit, and post to that sub-reddit from my site.
How would I achieve this using PHP?
I have searched the web everywhere and cannot seem to find anything that can help me. I am a begginer a PHP so it's quite confusing at times.
If there is an article explaining exactly what I want, I would be grateful if you could link me to it :)
Thank you!
EDIT: Documentation here; http://www.reddit.com/dev/api
I'd recomment to use/look into this opensource project on github (not my project). It uses curl to communicate and it might even be enough for you.
Another option would be to look into httpRequest::send and simply send your post variables with this method. This is if you like things to be more lowlevel.
The reddit api basically tells you what post parameters you need for which action

How to create a facebook app without much knowledge of PHP/MYSQL?

I'm trying to SUGGEST, or CREATE an app, and I don't have any knowledge of facebook app creation... I've looked up on tutorials, but facebook's API might change or has changed by the date of those tutorials...
So I thought I'll ask on here, after searching for a facebook developer's support, I was redirected to here.
My question: What is the best way to create a basic app, as per my requirements (below)..?
My Suggestion/Requirements: I wrote this tutorial on superuser, which lets you display your current playing track as an updated div on your html based website. I'm trying to create a facebook app that posts these track info updates to the right side of the facebook home panel (above the chat column). Like Spotify! Or SoundCloud...
My Problem: I don't know where to start? I don't have much knowledge of scripting and according to me, it should be quite simple in PHP/MYSQL/Javascript/ ... but don't know how facebook would handle the html file from where the <div> data could be collected. I think jquery would solve that, but this can also be done via PHP/MYSQL.
It should be simple, so I'm also suggesting this as an idea for anyone willing to create this app on facebook? And if you create it, please do keep it open source project or a tutorial for it, so that if at any time you close the app, it can still be replicated. I cannot create it but am willing to, but don't know how to...
I'm asking this here because facebook doesn't appear to have a forum based posts for this apart from the developers group. I've joined the facebook developers group, but haven't yet been allowed to post anything, as the join request is pending.
That's mostly all. Thanks for any help.
Start with registering your application on Facebook .It will give you some token and keys.
Now you can follow any tutorial online to create application on fb.

How to retrieve newsfeeds posted by FB apps using FB graph api?

I've been sarching for hours on FB graph api docs and google but couldn't find a solution. Let me explain my question. Using the FB graph API, we are able to retrieve user's newsfeeds, but how do we retrieve user's newsfeeds that are posted by FB apps, such as game scores/achievements? I know that it's possible to retrieve user's newsfeeds created by a specific app by adding filter=app_[app_id], but is there a way to filter newsfeeds that are created by any apps?
Currently what I do is that, if a newsfeed contains a link that links to app.facebook.com, I assume it's posted by an FB app. I'm not sure if this assumption is safe and is there a better way to achieve my goal?
P.S. I use php SDK so a php solution is highly appreciated. Solutions using other SDK are also appreciated. I'll try to make a conversion by myself.
Thanks in advance,
Kaze
Currently what I do is that, if a newsfeed contains a link that links to app.facebook.com, I assume it's posted by an FB app.
Posts in /me/feed that have been made by/using an app should have a property "application" set, which contains the app name, namespace and id – so by just looking for that you should be able to determine if it was posted by an app or manually.

Get Twitter User Details without Authentication

I have noticed some Twitter Applications manage to get a particular users Location, Name, Profile Image etc using just the twitter username?
Hows is this possible?
I ask because I have not come across any where in the Twitter docs on how you can do this. I can get a users details myself using oAuth when the user provides my app permission but thats it.
Would be grateful if this could be cleared. I hope its not the use of CURL as this is not a good idea in my eyes. If there is another way, is there a PHP implementation that I could use.
Thank you for any help.
Update
I did not know that existed! Is there a PHP wrapper or class someone has written to use that ? Sorry, I am complete noob and I relay on wrappers and simple function calls!
It's returned by the users/show call from the API.
For example:
http://twitter.com/users/show.xml?screen_name=dougw
The API wiki lists a PHP library FWIW.

Categories