friends,
how we can grab posts and comments from gplus business page ?
My page link look like https://plus.google.com/b/xxxxxxxxx/ .
I got the api to get details from an account using the following method.
https://www.googleapis.com/plus/v1/people/108189587050871927619/activities/public?key=yourAPIKey
but i couldnt find any thing for business page.
am using php for developing the code.
Thanks in advance..
A page is a "user" like any other - grab the ID displayed in the URL when you're browsing the page's posts, and look up the public posts for that id.
Related
I have a Book a Meeting Page on my website and users came to that page when they slide through all portfolio items.
Book a Meeting page is a separate page and here i need to display in some way from which portfolio item user got to this page?
Is there any way of doing this?
I think the http referer https://en.wikipedia.org/wiki/HTTP_referer is what you are looking for. Although i am pretty sure that a module for the same does exist in wordpress but it is simple to implement on own also in php.
here is a sample code
<?php
\\$url contains the url from where the user came from
$url = $_SERVER['HTTP_REFERER']
?>
If you try sharing via Google+ most of the articles on this WordPress site: appgo2market.com
you'll noticed that title when Google+ is wrong when trying to share.
This happens also if you cut and paste link to a post on your personal Google+ account for sharing.
I didn't see yet, any relation to what may need to be done on a WordPress site to solve this.
Any idea what needs to be done, on a WordPress site, using thesis2, to solve this?
Looks like many of the pages are behind a "become a member" section, which is the title I see being picked up. The title for the share can be controlled by adding schema.org markup, or by changing the title tag of the page. Take a look at this page for more details: https://developers.google.com/+/web/snippet/
I have a website where i implement a wall of messages, the idea is to add to each of this wall messages a like button, where clicking on it would immediately post on the user's facebook profile page that he likes THAT SPECIFIC COMMENT.
Is this possible? I just enter this new world of facebook php developers, and as far as I have read here it always talks about adding a Like button for a specific URL. I would like to make the like button apply for the specific post within the messages wall.
I am clueless as where to start, if by the way any one could recommend a detailed tutorial on how to integrate a website to facebook in its different ways, i would really appreciate it.
EDIT:
Looking into #Kaan Soral suggestion of using open graph, I think it is important to add that I dont want each wall post that the user likes to appear in the "Likes and Interests" section of his profile... This wouldn't make sense because he would rapidly have loads of likes of separate wall posts.
Its possible, read this: http://developers.facebook.com/docs/opengraph/
You have to create a URL for every item that will be liked and on that URL there should be META tags for descriptions, image etc
I have a blog and for each article I'd like to display all tweets/retweets that contain the URL to that page. I'd also like to be able to resolve shortened URLs. Is there any easy way to do this in php5? Thanks.
Yes, call the search API method:
http://search.twitter.com/search.json?q=http://bit.ly/
Try the Marginize publisher widget: http://marginize.com/publishers
It will find all the tweets about the page and bring them back to the site
I've successfully integrated a Facebook Like button to WordPress based website. The Facebook Like button is shown only on single posts. However, I would like to output how many times a post is being liked on the front page of my site without showing the actual like button. A simple number output is what I'm after.
I've been reading Facebook documentation as well some tutorials that partly deal with this issue, but haven't got anywhere so far.
Paste this function in your theme functions.php file and save the file.
function bfan() {
$pageID = 'Page ID/Page Vanity URL';
$info = json_decode(file_get_contents('http://graph.facebook.com/' . $pageID));
echo $info->likes;
}
Then you can call the function.
You will need to know your facebook page ID or facebook page name,then just substitute it in the code above.
Hope this helps you out.
Facebook has an API for finding out how many Facebook shares (likes etc.) a page has:
http://graph.facebook.com/?ids=https://stackoverflow.com/
I found here a simple and great solution: link
If you want see the evolution of your Top Social Stories in your Wordpress, you can use this plugin that tracks data from Facebook, Twitter and Google+ for each post and globally for all the links of your blog and export these data also in custom field to use them in your theme.
UPDATE: this plugin now tracks also Pinterest, Linkedin and Vkontakte and has many new features.