Is there any way to put multiple adsense API codes on same domain but on different urls?
Using different API keys to manage different adsense campaignes on same domain?
Related
I have multiple chatbots, each with their own webhook endpoint. (Really its multiple instances of the same chatbot)
I have multiple Facebook Pages that match each chatbot (instance).
I would like to have a single FB App, that goes through the Review Process and Business Verification, and then route my Facebook Pages messages, through that app and route them to the single appropriate webhook for that page.
Is this possible?
If not, then what if I built a single webhook that did the routing based on the Page ID?
The goal is to not have to create multiple apps, and go through the entire process for each one, every time a new client requires a new instance of the same chatbot.
I have a SEO website, and want to show google analytics data of users.
I can retrieve my own website google analytics data via google Reporting API version 4 php client , but how can I retrieve others Google analytics data ? Users after registration gives only theirs email and tracked website url, what else I need to make php client request ?
How can I do it ?
To show the Google analytical data. You have to add the website url into your Google analytical account.
You must be the owner of your account. Add as many websites as you wanted
to add the website of users.
You have to follow the steps as you added your website.
That means user has to add the code into their website which will be provided when we add a new website in Analytical account.
Once added the data will be shown to the main account holder.
then you have to provide the access to the User whom you want to show.
I am wondering if there is a common mechanism for a third-party side to access to any social network data, and I found this social-networks connect services. In this article, they describe 4 stages for a third party to connect to a social network.
1) Identity Authentication: the third-party application can use the authentication services provided by social network side (e.g., OAuth) to authenticate users.
2) Authorization: the social network provide the permission for the third-party side to access its own data. (normally, social networks again use OAuth to manage the access right)
3) Streams: let third-party sites publish to users' activity stream and vice versa. (e.g., Facebook uses Open Stream API)
4) Applications: let third-party sites develop rich social features within the application scope (e.g., the third-party sides can use Graph API, FQL to update Facebook information)
My question is
1) Is it true to apply to any social network throughout this above mechanism?
2) I've read the Open Stream API that Facebook launched 3 years ago, and when I open Facebook API documents, I don't see it anymore. Is it true that Facebook is no longer supporting this api. Or in the case I misunderstood, is it possible to consider FQL, Graph API the same as Open Stream API in Facebook? or they are different?
Social Networking sites do not give direct access to their streaming data. For e.g facebook gives us public data access through it's Graph/Search API & FQL.
But for streaming data you may have to contact one of their authorized data re-sellers. They can give you one point access to all social networks you need.Datasift & GNIP are the two I remember on the top of my mind. I'm stuck at a similar point, you may also want to keep a track of my SO question which is on similar lines.
I'm trying to use Facebook's Graph API to grab a user's insights data, and display it in an admin panel for them, as a part of their custom CMS.
There are a few steps to my Facebook integration:
1. Authenticate
2. Get a list of pages, applications, and domains for the user
3. Get insights data for each page, application and domain
All of the above are working, but I can't find a way to list all the domains a user has. I'm using https://graph.facebook.com/me/accounts to get the list of accounts for the user. This is returning all the Pages and Applications, but no Domains.
I have looked all over Facebook's docs, and can't find any reference to a method for retrieving a list.
I have tried https://graph.facebook.com/domains, https://graph.facebook.com/me/domains, https://graph.facebook.com/domain, and https://graph.facebook.com/me/domain - to no avail. https://graph.facebook.com/domain and https://graph.facebook.com/domains are valid, but are only useful if you know the domain.
So, the question: Is there a way to obtain a list of domains for a user using the Graph API?
Thanks
try this Graph API call: https://graph.facebook.com/fql?q=SELECT domain_name, domain_id FROM domain WHERE domain_id in ( SELECT domain_id FROM domain_admin WHERE owner_id=me())&access_token=VALIDUSERACCESSTOKENOFTHEOWNEROFTHEDOMAIN
I have looked for some explanation on the exact usages for the set of standards known as OpenSocial.
I need some clarification if I can use OpenSocial like the following.
I would like to create one library used to community with an OpenSocial api for use in my website that will not 'behave' like an application described by common sites like facebook and myspace. I'm not making a myspace of facebook application, I'm creating my own website and I want users to be able to find friends.
I would like to allow users to store usernames and passwords for various OpenSocial-supported social networks. I would also like to use the api to sync events from my web site to their specified social network. I would also like to allow my users to view a list of friends and invite them.
Is it possible to create one library that supports OpenSocial and simple "point" to and social network that supports it to get a list of friends and etc?
Many OpenSocial containers (social networking sites) support REST and/or RPC methods which can be used to access friend lists, post activities, etc. Several client libraries have been written to work with these APIs (http://wiki.opensocial.org/index.php?title=Client_Libraries). It is possible to use the client libraries to create a site which allows you to sign in with an account on a supported OpenSocial network and obtain a list of your friends.
However, it is not possible to authenticate against an OpenSocial API by storing a user's name and password and sending it to the social networking site. This is considered a poor design pattern and is discouraged. Instead, OpenSocial supports 3-legged OAuth, which involves redirecting a user to the social network where they input their credentials and are redirected back to your site with a token which can be used to access the user's data.
Note that not every site supports 3-legged OAuth, although at least MySpace, iGoogle, hi5, and Netlog do right now.
Once authenticated, you will be able to fetch data from pretty much any network. Posting activities back is supported on some networks, but not all of them at this time.
This approach does requires you to register your website with each social network you want to support, which can be a scaling problem. To try and help this, Google released Friend Connect, which ties together OpenSocial APIs from various networks to give you one interface which is easier to program against (full disclosure: I'm a Google employee and work with Friend Connect from time to time). I gave a talk at Google I/O this year describing such integrations with a website which may be of help. (Since I'm currently limited to posting a single link in my posts, it's up at http colon slash slash code.google.com/events/io/sessions/BeyondCutPasteGoogleFriendConnect.html)
I'm happy to elaborate further if you have additional questions.