I wanted to know whether facebook had the ability to block a person's website from having embedded links. I don't know exactly how embeded links work, but as it is a generic link and no access is needed to actually implement an embed, it makes me wonder if facebook can block specific websites from using embedded links?
Also what can Facebook (or other social media giants) track on my website if it has embedded links?
Related
all.
I want to add utm_ parameters to all my social share buttons. I successfully included the parameters into the Twitter and G+ without any problems. But have a lot of problems with Facebook and Pinterest.
Pinterest strip any utm_ parameters.
Facebook uses a canonical URL instead of I provided.
Solutions I was tried:
1) using an URL shortener bit.ly. Pinterest doesn't allow to use it. Facebook still use the canonical URL instead of one I provided
2) Use the fb_ref for the Facebook. We use Wordpress VIP hosting and this hosting strips any parameters from facebook.
3) Rename the utm_ parameters to utm. It was fixed the problem but I want to keep all my tracking info consistent.
Any ideas? Thanks
UPDATE 12/21/13
I want to have the following. Scenario:
1) user shares the content from my site (http://example.com/url/?utm_campaign=onsitesharebutton)
2) user's friend goes to Social Network, for example Pinterest, and see this Pin
3) user's friend clicks on this Pin and goes to my site. When he goes to my site, I wanted to have the utm_* parameters in the URL, ie http://example.com/url/?utm_campaign=onsitesharebutton. In this way I will know that this user arrived through a certain source or overall marketing channel as part of a certain campaign
Problems:
1) Pinterest strips UTM_* parameters from the my URLs
2) Facebook uses canonical URL to share and ignores my UTM_* parameters
I still would like to change a few things about the Facebook Like / Share button and Google+ button seems to sometimes have issues in Safari, but I successfully track likes, pins, +1s, tweets, and even LinkedIn using a variety of techniques.
Facebooks recent changes to their buttons just confused me. I had everything working and then they change all.js or whatever the JavaScript is you must use. They also changed the colors and size. I wasted a lot of time on this and I'm still not happy but I do track everything carefully in Google Analytics.
So here's my use case:
A user sees a cool product on a shopping website (sample-shopping-site.com)
They want to share this product with their friends on facebook
They however want to pass the information to an intermediary site (a-sharing-app.com - that i'm trying to develop), that posts to facebook on my behalf.
My questions:
Is this even allowed by facebook? i.e. can a-sharing-app.com put a widget on sample-shopping-site.com, so that a person visiting sample-shopping-site.com can share on facebook via a-sharing-app.com?
If yes, could you point me to helpful bits on the facebook developers API page?
Just want to clarify: the APIs and most questions/examples on the internet point towards sharing directly from sample-shopping-site.com to facebook, by registering sample-shopping-site.com as an App with facebook.
I however want to register a-sharing-app.com as an App, and then putting a widget of a-sharing-app.com on any page (such as sample-shopping-site.com) allows me to share on facebook by passing information to a-sharing-app.com
As far as I know there is no Facebook guidelines that restrict what you want to achieve, so I may safely say that yes, you can create an app so that a person visiting sample-shopping-site.com can share on facebook via a-sharing-app.com . I can even mention a well know service that is doing the same, Disqus.
How you can implement this feature is a little up to you but may I suggest what Disqus or apps like it are doing is, they use the JavaScript API of Facebook to integrate and are mostly enabled within an iframe that loads content from their domain. The exchange of information between sample-shopping-site.com and a-sharing-app.com is done by the JavaScript loader which loads the necessary iframe then. The other things you would like to check would be Dialogs which you may use for different cases, or you may do it on your own using the FB.api and make API calls to the Graph API for sharing data.
I've been looking at OpenGraph API and other FB Developers documentation, but can't really see if it's possible to attach FB "Like" and/or "Share" buttons to snippets of data on a page.
I've only ever seen whole page implementations. I.e. when you "Like" a blog article for example, you're actually liking a specific page (the blog post). However, I have several pieces of information on a single page (they don't link anywhere) and wondered if I could get my users to interact with that? So they'd be liking a section within a page? Using anchors to link back..
Is this possible or does it not even make sense?
P
It looks that you are looking for "social interaction web tracking". Take a look here http://www.seosandwitch.com/2013/03/how-to-track-facebook-likes-in-google.html?m=1
2 Part question
1) So I am trying to figure out the difference between "liking" something on pinterest vs "liking" a business. Is it the same thing?
2) I want to implement people "liking" different pages on my website (such as pinterest) and track which page has the most likes. Do I have to save and track that in my database or facebook API will let me see which pages has most likes based on some criteria?
TLDR: Yes, they are the same thing.
A Facebook "Like" is what is an Open Graph Action. Liking something from within the Facebook web interface or via one of the Facebook plugins allows an easy implementation path. Pinterest uses a custom script that initiates a built-in like action.
Both types of like require there to be an object with open graph metadata that Facebook can scrape to get the information that will be shared on a timeline. That metadata could be served by Facebook on an internal page, or by an external page.
As for getting the number of likes, yes you can. Each canonical open graph URL gets an id within the Facebook system. This includes objects within the Facebook system.
So, the Pinterest Facebook page has an id of 253591661347566. You can find this by querying https://graph.facebook.com/pinterest?fields=id
The Pinterest home page has an id of 185629821512802 according to https://graph.facebook.com/http://pinterest.com?fields=id. (Not urlencoded for clarity). You could replace http://pinterest.com with any other url, and get that pages id.
For any object that you know the id, you can get information on the number of likes it has by adding likes to the fields querystring.
If you've marked up your pages with an app id and admin information, you can see all of this and more through Facebook's Insights.
i've built a survey and at the end i want the users to share their result on their facebook wall but i'm finding it hard to find any examples or reference.
something like;
<div>
[ image/graphic ]
"I've just completed survey XXX and got 90%"
<a>post on my wall</a>
</div>
any help appreciated - even if its just terminology i can look up!
Start here. Basically, you're creating a website which you want to integrate into Facebook. To do so, your users will need to "login to Facebook" from your site (unless they're already logged in, such as in another browser tab) and allow your site to perform certain actions on Facebook on their behalf.
The Single Sign-On part is where you will initialize your website as a Facebook application (you'll need to create the application on Facebook first) and provide a login button for your users.
Your login button can be set up to ask the user for specific permissions to act on their behalf with Facebook. I think the one you want is publish-stream but I'm only barely familiar with it, play around with the functionality and see what works best for you. Your users will be presented with a pop-up div stating that your website (or application) is requesting these specific permissions and they have the option to allow or deny. An example can be seen here.
Once you have the user's permission, you make use of the cookie (demonstrated using PHP back on the Single Sign-On link) to gain access to information by use of the Graph API, the JavaScript SDK, Social Plugins, etc.
you should use the facebook api.
Get the "publish_stream" right of a user and use the "api" method of the connection object (with parameters like : '/userid/feed', 'post', array of informations about the post).
I can't find the right code and the official document is not always up-to-date.
OR
Just add a facebook "share" button on your page that uses "meta" markups. You should find examples on about 80% of websites.