Can Any one please help me. I want this textbox to be visible on my website and the users can update their status directly from the website. Thankyou in advance
The facebook API don't provide such functionality.
You may make the similar looking text box of our own, and use feed to update their status.
Sample Code.
First you need to Create a new App for your Site https://developers.facebook.com/apps
Then after creating the App,by using the API Key and App Secret with the Help of OAuth Protocol you need to Integrate as shown in their following
https://developers.facebook.com/docs/reference/php/
Then Include these two files then you give action to the Post Button.
Related
So I am trying to figure out if I can create a simple custom PHP script that takes data from a google hangout link and displays back if it is in session.
I am pretty new to Google APi's. My end goal is to create a button on a website that appears whenever someone has joined into a certain designated HANGOUT link.
Do you think this is possible? Any advice would be highly appreciated.
Here was I was thinking:
$stuff = strip_tags(file_get_contents("https://hangouts.google.com/hangouts/_/4im2yhs5kry4vjhlu4yop25tsea"));
$eStrings = explode(' ', $stuff);
I would then retrieve the data from the code and see if it is live or not. If at top of the screen it reads: "You are the only one here" then it is automatically assumed that the session has not begun.
Problem=> You get directed to the google login screen because you need user access.
If anyone has ideas please advise.
While there is a PHP API SDK for Google in beta, it doesn't appear to support Hangouts at all. Google does however expose a client-side JavaScript interface for Hangouts that you should be able to emit and use from your PHP server-side code.
Using the JS interface, you could use the gapi.hangout.onParticipantsChanged event notification for a given Hangout to know when someone has joined.
Then leverage the gapi.hangouts.getParticipants() function to pull a list of who's in the hangout and determine if your button should show for the current user.
I'm trying to share text and image on user's google plus stream. This text and image would be set by me. What I'm trying to achieve is, User will login to his google plus account(if not login) and then this text and image will be automatically post to his stream.
I've tried this method for sharing
https://plus.google.com/share?url=https://encrypted-tbn0.gstatic.com/images?q%3Dtbn:ANd9GcRt6YQ8bwQdOVZqTG7wls93F-bwbENvH292Lfx_TBOY9lLYL5X5RhXVRvk&hl=en
It is working fine but I want to execute this using curl or jQuery so that I can set the text and image to the respected fields and submit this at my end.But in this I'm not getting that how is it working because it is not a form.
Please help me how to do this.Please let me know if I can do this with other way.
I've go through these links also but didn't find anything useful.
https://developers.google.com/+/api/
http://www.nextscripts.com/google-plus-automated-posting/
https://developers.google.com/+/web/embedded-post/
http://www.sanwebe.com/2012/11/login-with-google-api-php
https://github.com/google/google-api-php-client
set text to google+ share button
There are two ways to automate posting to Google+. One is app activities which do not show up on Google+ streams and Google Apps users can create posts that are limited to their domain.
Outside of those two options posting to Google+ has to be done with an explicit click by the user on Google owned UI. Interactive posts and the share button are the best options.
As you can see in Official Documentation
Share Endpoint
The share link invokes the Google+ share endpoint, which you can also link to directly:
https://plus.google.com/share
The Google+ share endpoint accepts the following only query parameters:
url The URL of the page to share. This value should be url encoded.
hl The language code for the locale to use on the Google+ sharing page.
So only this is available
https://plus.google.com/share?url=http://www.Google.com
or
https://plus.google.com/share?url=http://www.Google.com&hl=ar
or
https://plus.google.com/share?url=http://www.Google.com&hl=en
The only way to prefill the text of a share is to use Interactive Posts as
You can do that by set of steps as Full Example here
I am new to this. I have read Twitter Documentation whole day but still clueless.
I need to setup a "Login with Twitter" button on my website, which login any random visitor and after that gets his profile info from Twitter.
I know it uses Oauth... and I guess... REST API also... but I don't see any examples related to PHP.
Any link to any tutorial would help!
Please, help! It is urgent!
Regards!
Check out the PHP Twitter library TwitterOAuth. There is documentation that talks about how the example code works. The example code implements the Login With Twitter button, so you should be able to copy the code and use it on your site fairly easily.
I am developing an iPhone app, which now can update Twitter account with GPS coordinates in real-time, by the Twitter API link: http://username:password#twitter.com/statuses/update.xml , and I am looking at how to make my own database to accept updates from iPhone, via a similar API page.
It seems a .php page can serve as the API, and MySQL can serve as the database.
What are the good ways of doing it? Any template code and tutorial please?
Try one of these:
http://www.webresourcesdepot.com/how-to-create-an-api-10-tutorials/
Thanks for the answer. I found the php page just need code like
$userid=$_POST["userid"];
$companyid=$_POST["companyid"];
$phoneid=$_POST["phoneid"];
to receive POST from the iphone app.
How can I easily add a button to my website that will let a user follow me on Twitter?
I'd like something that doesn't require the user to leave my site and visit twitter.com
You can do it by twitter's API,
check out this link to get you started
You should check out Twitter's #anywhere.
It basically injects some Javascript into the page giving you buttons for following, retweeting, etc.