I'm interested with the way Yahoo implement their Facebook's share and Twitter retweet button,
as from the link http://shine.yahoo.com/event/the-thread/fashion-disasters-made-right-2444269
Any idea how can it be done my own website?
http://sethsandler.com/resources/combine-display-facebook-twitter-comment-counts/ -> explains how to get a url share count on facebook. I'm not saying this is what Yahoo! is using, but some API calls like these are being made to show the count along with the logo.
Related
We are trying to develop an analytics section in our site ( built in PHP). And we want to capture the search words which are used to find our website in search engines ( like Google.com) while it is redirected to our site.
Let's take an example, our site is "designsolution.com" and some people search in google with "best web designing company in Kanpur" and google.com showing our site on the first page. Then the user clicks on our site link and googles redirects the user to our site. Now, we want to know that the "best web designing company in Kanpur" used to search and find us.
Is there any way to get Google Search Terms/keywords in PHP? Any API service or any custom code? Please help.
Hello and welcome to Stackoverflow community.
When you click on a link in Google search result and you get redirected to your website, all data that Google sends to your website is just the Referer header parameter. So it's impossible to actualy get the search term using only PHP code. You can just findout that user came from Google search result.
Instead, you have to use Google webmasters and submit your website there so you can see what keywords used for finding your website.
Cheers,
I want to share my research here as I found many people also looking for it.
We can get Google Search keywords for our website using Google Webmaster console API
You need to sync or fetch data after Authorize Google Webmaster console API with your website.
Here is Search google search console API:
https://developers.google.com/webmaster-tools/search-console-api-original/v3/
Here is the sample code: https://developers.google.com/webmaster-tools/search-console-api-original/v3/samples
Another code library:
https://github.com/googleapis/google-api-php-client-services
Thanks
All I want to post a text with an image on Google+ wall/stream using Oauth2 and PHP. Similar to a wall post for Facebook and Tweet post for Twitter.
User click on share on Google+ button from my website, they redirect to the google app approval page, they approve and message with the image get posted on their stream/wall.
I have searched almost entire internet for this requirement. But I didn't get exact code to achieve this.
I have already checked this: Google APIs PHP client
However the code is not up to the point or clear.
Some people says that it is not possible, google only allows read operations.
But then some people says it is possible according to this: Creating new posts and comments
Google documentation is very confusing for this requirement, compare to Facebook and Twitter.
So all I want is clear answer whether is it possible or not? If yes then how?
The google plus api is read only it does not support posting in any form. Google plus domains is for posting to Google domains accounts not google plus the social media website.
Develop business apps that integrate with Google+ With the Google+
Domains API, Google Apps customers and ISVs can build custom Google+
functionality and services for people who use Google Apps at college,
at work, or at home. Organizations can develop tools to interact with
Google+ features such as posts, comments, and circles. These tools let
your users share information, reinforce communications, and grow
productivity within your organization.
Pages API is for posting to Google+ page and is in closed beta.
There is no way to programmatically post to the google+ social media website wall/stream. However there is a six year old issue request for it Write access to the streams.
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.
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!
Am not sure there is a feature like ,
automatically update twitter tweet in to facebook ,
May i know is there any like automatic update ,
For Should i use API or CURL , or anything else ,
Thanks
just i find one thread from google
link text
Is there any thing else then this thread...
You can do it using the twitter application on facebook. There is more helpful information here
There are a couple existing ways to do this. As Shadi suggested you can use the official twitter app. or if you would like more control on what is sent to facebook you can use tweelay.net (full disclosure: i am the sole developer of tweelay)
If you wanted to roll your own:
I suggest using the Twitter Streaming API backed up by a standard statuses/home_timeline call from a cron job every minute or so to grab tweets. then with the tweets you can send them to facebook using the Graph API.
There are several existing libraries that can be used to get you started.