facebook open graph check-in - php

I have Open Graph feature in my app. I have to maintain the total check-ins in my Facebook account. And have to show the all checked-in places in one map. Foursquare app used this in their app. But i don't know, how to implement like that.
They have used two ways of showing in aggregation, First one is, Image1 And the second one is, Image2
So, I have to do the both like Foursquare app. Please help me in this.

Related

Proper Method for Google Calendar with PHP

I am working on a website for my organization which will allow users of the website to create/modify/etc room reservations for a number of spaces in our building.
Each room has a Google Calendar which links to several monitors around the building to display what rooms are [un]available. So, my goal was to utilize these calendars by having the website I am creating edit these google calendars. The problem I am having however is that from all the documentation I have been able to find, it looks like you have to prompt each user for Google Log-In. This is what I am trying to avoid. I want individuals to be able to log-in to my website, and then on the backend my website provides the authentication to Google so that they can add/edit/remove events from the aforementioned GCals based on permissions on set on their account.
Can anyone help direct me to the proper documentation? I've found a couple of things through some intensive Google-ing of my own, but I've become extremely confused about what method I should be using.
Any assistance in getting things rolling is appreciated!
If I understand it correctly, the concept that you want is to create a website that writes into your own calendar and not on the users calendar. Exactly what this 3 part tutorial of Sample Web Page for Booking gives:
Part 1: Setting up Google Calendar
Part 2: OAuth2 and Configuring Your ‘Application’ With Google
Part 3: A Sample Web Page For Bookings
This tutorial worked for many like what has been done in this SO post - How do I connect to the Google Calendar API without the oAuth authentication?.

Pull Movies details from Google Play to a Webpage

I want to show google playstore movies in a webpage, so that uses can get info about the movie and can buy any movies from my website.
I haver read that Google does not expose any official API for this. Also tried available APIs from GitHub. Those are not working.
I dont want to read the DOM of google playstore page via cURL login and want to display it to my webpage.
There is no exposed Google Play API, but if you're willing to do just a little bit of DOM parsing you can do this in a pretty straightforward way.
If you get a google playstore page, and scan it for all the IDs of the videos (so, for example, things like '/store/movies/details/The_Fault_In_Our_Stars?id=iXwnxJu4q7s'), you can then take those IDs and query the YouTube API with them, since the Google Play ID is identical to the YouTube ID. If you built a DB of which IDs went with which titles, you could then use the YouTube API to pull the relevant metadata, display them on your page, and even allow rentals through your side (by using the YouTube Player API with one of these IDs, users who haven't rented or bought will see, in the video, a little button that lets them start the rental process). Similarly, You can embed the YouTube player with these IDs to let users watch through your page as well.

Check-In/Map API

I'm trying to get some information for a application we would like to develop for our business. We run a chain of stores (approximately 20) and would like to give our customers reward points when they check-in to our store location. We would also like to display that information our company site eg. "Client X has checked in Location Y". I was wondering if anyone can point me to any API(s) or solutions that may be able to achieve something along these lines? I was looking at the foursquare API, is this a viable option? or is there any other recommendations?
Thank you
As Fahri pointed you can use 4sq API, but nowadays all socials integrate geolocation. You can share your position also using Facebook and Twitter. I will suggest to use the last two, because they has integrated authentication, and API since iOS6, probably they are also more used than 4SQ.

Simplest way to get data from Google Analytics?

I am building a service like Wix.com, users can build simple mutli-pages website with ease. Every website will be including in a global Google Analytics account with a unique profile, then the tracking code is to be placed in the website pages.
Now, on the website dashboard i want to show the online visitors and the total number of visists for the website for each website separatly, trying to do so i have :
Tried using GAPI (http://code.google.com/p/gapi-google-analytics-php-interface/) but due to Google Analytics major update it doesn't work anymore.
I found Google Core reporting API for Analytics, but i believe it's made for 3rd party applications that accesses GA data for their clients, meaning that the user should have a Google account and GA profile for the website, and the App just connects to the account and retrieves data. And this of course isn't the case here; i can't ask the user to create a Google account and embed the tracking code in the website HTML; else what am i here for ?
Got the picture ? I need the simplest method to do this, no fancy stuff.
PS: Minutes ago i found this: Google Analytics Query Explorer (http://ga-dev-tools.appspot.com/explorer/), it's a 3rd party app that builds custom queries for GA and gives you the link, something like that :
https://www.googleapis.com/analytics/v3/data/ga?ids= (the ID) &dimensions=ga%3AvisitCount&metrics=ga%3Avisitors&segment=gaid%3A%3A-1&start-date=2013-02-01&end-date=2013-02-23&max-results=50
Now, trying to access the URL (thinking; this is easy :) ) the respond is a request for login first :
{"error":{"errors":[{"domain":"global","reason":"required","message":"Login Required","locationType":"header","location":"Authorization"}],"code":401,"message":"Login Required"}}
Thanks in advance.
Unless you have fewer than 50 clients this plan is not going to work the way you're asking for. (There is a limit of 50 profiles per account.)
The client will have to make their own GA number and provide it to you as a setting for their website.
In order to display the customers reports on a dashboard on your site you're also going to have to get them to authorize a GA App you create for access.

Is there any good totuiral to facebook API and is it possible to get the friends list of the user in my site?

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.

Categories