Using Input Box to Post onto Twitter - api

Is it possible to post onto Twitter using the sharing URL, for example:
http://twitter.com/home?status=My Status Update
But, instead of creating a link for a user to click, I want to have an input box that will post the content of the input box as the status. So, whatever the user types into the input box would replace My Status Update.
I'm thinking there should be a way to use the form to post onto this URL hxxp://twitter.com/home?status=XXXX where XXXX is the input value. Is this possible?
UPDATE: I realize I described this wrong - it doesn't have to ACTUALLY POST the status, it can take them to Twitter, ask them to logged in (if not, skip), and then put the status update inside the Tweet Box and require the user to press Tweet to send it
Thanks!

No, Twitter require the status to be sent from it's interface.
You can provide the user an option to send status from your site only with twitter application and only after the user authorized your application to sends twits in his account.

Sadly, the solution to this may be more complicated then you think.
Twitter recently switched to full OAuth authentication to interact with their api and to post status updates etc.
In short, to do what you suggest above will require your visitors to log in.
To simplify this, on my websites I use the Official Twitter Tweet Button because I feel that my visitors will trust it the most and will enter in their username/pass without worry.
The Official Twitter Tweet Button page has a builder where you can select various options to change the look and content of the tweet itself.
Be sure to checkout the full documentation for the advanced usage examples and the full reference of properties that can be used with the javascript tweet button
p.s.
On my site I registered for an app so I could include the following js file:
<script src="http://platform.twitter.com/anywhere.js?id=MY-APP-ID&v=1"></script>
And my links look something like this:
Tweet

Related

Using Instagram's Graph API, how can I retrieve post data (media url, caption, poster username, etc)

I want to use Instagram's Graph API on my backend server to retrieve data about an Instagram post. On my frontend, users will submit a post URL (like https://www.instagram.com/p/CAvPIm2lszQ/). Then on my backend, I want to take the ID of the post from that URL (so in this case CAvPIm2lszQ) and then I'm hoping that I can pass that ID thru the Instagram Graph API and then retrieve the data that I need (media URL, caption, poster username, etc.).
So would that be possible? I did find documentation on "IG Media" for the Graph API, but under permissions, it says, "A Facebook User access token from a User who created the IG Media object, with the following permissions.."
Unless I'm misunderstanding it, I'm not sure if I'll be able to access posts from various public accounts. I think it's also worth mentioning that my users are not logging into their Instagram accounts to use my service so the only possible "User access token" would be my own.
Any ideas on how I can go about this? I was using the instagram.com/p/{post_id}/?__a=1 endpoint to meet my needs before but it doesn't work on my production server for some reason. So I'm kinda stuck.
Most probably you will not be able to achieve that using Instagram API. First of all the ID you are referring to CAvPIm2lszQ is not the ID that you will use for getting IG Media. The ID is different (it's numeric value like in the sample request from the page you've linked). The full URL that includes CAvPIm2lszQ is in the shortcode field.
At the moment it is not possible to look for the post detail using shortcode. If you want to use that endpoint you need to get the real post ID first, for instance by listing list of posts from given user.
But in order to do so - you need to use Facebook login authorization window to get token from given user. Alternatively you can try to request https://developers.facebook.com/docs/instagram-api/guides/business-discovery but it requires going through App review and having your own company to pass the Business Verification. Keep in mind that this endpoint returns information only about Instagram Professional accounts (Business/Creator account). You will not be able to get information about regular accounts.
And the last thing about ?__a=1 endpoint. This is not the official Instagram API. They use it only for their own purposes. Most probably your server IP address has been blocked due to sending too many requests.

Login Via Twitter

It has been almost a month and I couldn't figure this out.
I am developing a social network application and I want the users to be able to log in via their Twitter and Facebook account Like the screenshot below:
The Facebook is done, and I am stock with the twitter, Note that these pictures are actually set as a buttons.
What I want exactly is:
The user can be able to login (sign up) on the application using their Twitter and I will retrieve the basic information from Twitter API "Name,Username,Profile picture" in my application and store them in my database.
Note: I am using Parse and I already have a table call user.
Please help me :'(
It sounds like you haven't tried anything with Twitter yet.
If this were my code, I'd probably use the Twitter API to login, which they introduce you to here.
Or you can use one of the handy Objective-C libraries they've listed here

How publish Hootsuite on Google+ Pages stream?

I want to achieve the same as Hootsuite, publish a post in a PAGE STREAM. But I don't know even where to look for it. It looks like Hootsuite is using the API, because they prompt an open Auth authentication where the user selects and authorize what this APP can do with his data.
With the PHP client I've been able of posting in the user APP stream (different from the user main stream) using moments class, and get data from the user using plus class client, both from the PHP library available here: https://code.google.com/p/google-api-php-client/source/checkout
But I don't know how to write in a user's page. Does anyone knows or can point me where to go to, at least, publish on main Google+ page stream as Hootsuite? Thanks.
The Google+ Pages API is currently available to a limited number of parters only, including HootSuite. You can request access to the API at https://developers.google.com/+/api/pages-signup but there is no guarantee when, or even if, Google will approve your access.
Although you can use the HootSuite console to post messages to Google+ pages (see http://hootsuite.com/google+), it isn't clear if you can use the HootSuite API to do so.

Getting the share link for checkins from Foursquare API

Currently I'm grabbing a user's latest checkin and displaying it on a page. This is done using an access token, e.g.
var url = "https://api.foursquare.com/v2/users/self/checkins?oauth_token=" + access_token + "&v=20120214";
What I'm trying to do is have a link go to the check in URL on Foursquare, however that link asks for users to log in. The link is created like so:
foursquare.com/{username}/checkin/{checkinID}
This goes to a "log in to foursquare" page, but if I view the link for Twitter, it has an extra parameter, "s=", which shows the check in regardless of being logged into Foursquare or not.
So my question is how can I generate a share link for the check in? I can't find anything in the docs about having a signature, nor is it something I find in the checkin object.
Check-ins are only visible to a user's friends, unless they choose to publish it to another system like Twitter or Facebook. Because of this, a potential viewer needs to log-in so we can verify that they are a friend of the user.

Using the twitter API for background processing

'Background processing' is a terrible term, but I can't think of a better one at this time on a Friday!
I need a specific part of my web app to communicate with twitter - post a status using a single, fixed account. Every twitter oauth tutorial I've seen talks about applications in the general sense - those with multiple users. Does anyone have an example of basic twitter status updating via a non-interactive process?
OK, after a lot of searching and hair-pulling, the answer seems to be:
Go to your app settings page on twitter
Click the 'My Access Token' button in the right hand column
Take a note of the sccess token details on this page
Follow these instructions to use the single-use token details