I am building a website and I am going to add the possibility to share on Facebook, Twitter and Google +. How ever, in some of the sharing codes I have to pass the URL I want to share in a href, the Facebook one gets automatically the actual URL of the page.
My question is: this pages I'm sharing have post data, will the Facebook one work? And what can I do with the other ones that I have to do an href? Is this possible with pages that have post data? If not, what can I do?
Thank you.
You can't. Links can only include plain URLs and make GET requests.
That said, if you want to share a page on social media, it almost certainly isn't appropriate to be requiring a POST request to generate that page in the first place.
Related
I made a pdf ebook where I embeded a link to a youtube video I uploaded.
on youtube stats, it shows that my traffic source is unknown.
I know this is hurting the seo of my video. This is why I am trying to enhance my youtube seo by making the visitors who come from my pdf looks like comming from facebook.
I know this is called faking the referral but I don't know if this can be done through this way:
1 _ user click on the link embeded in the PDF.
2 _ the user get redirected to "myscript.com".
3 _ "myscript.com" will redirect the user to youtube.
4 _ youtube stats show traffic comming from facebook.
please, if you know anything about this, help me.
This isn't possible. You can fake the referrer in your own browser, but you can't force someone else's browser to fake it.
What your solution will do is show the referrer as being your own website. That may still be better than it seemingly coming from nowhere. But, on the other hand, it may not. I'm no expert on the way that Youtube SEO works. I suspect, though, that anything which attempts to deliberately manipulate it is likely to hurt rather than help you. Let your content be its own best advert.
If you're determined to go down this route, though, an alternative solution would be to set up a Facebook page and embed the video in that. Then make the Facebook page the destination of the link in the PDF. That way, the referrer for the video really will be Facebook.
Faking a URL isn't going to enhance your SEO. If you want to track traffic from that ebook, use UTM tagging in that embedded URL.
I'm not sure if this will be reflected in your YouTube stats, but should be easy to track in Google Analytics.
I'm a little bit confused right now. But I think I'm making it more complicated than it is actually :) It's about posting out of a Facebook app. I have a Facebook page and I'm about to develop an app which should be integrated in that page. The purpose is to make the page more attractive and memorable. The app is about the content the page contributes. The problem is (I've alredy read some questions about that, but still I don't get it), if I post on a users' wall, I post as the app and not as the page.
It is possible to post on a users' wall after requesting their permission (publish_stream) and also on to post on a page the user administrates (manage_page). Am I right so far? But is there a way to post as my page within my app? Can I post as a one of my app users on a wall with any permission? I thought about if I start to use my app as my page, maybe then I can post as my page?
It may sound a bit awkward, but I hope anyone can help me. At least to tell me that I'm dreaming of something which wouldn't be possible anytime (because of security issues i.e.).
Thanks!
You cannot post as your page, users in your application can post to their walls or your applications page. In fact when building your app, if you are using Facebook as a page and try to refresh your App from your URL you will get errors... if you need help starting your app with the functions i have mentioned, visit this link: http://www.epixseo.com/index.php/facebook-php-3-3-1-and-javascript-sdk-graph-api-tutorial/
I am setting up a competition on a Facebook page - i.e. a Facebook Tab Page.
When a fan "likes" the page they are shown a HTML form where they submit their name and email.
I have explored using an Awebber form but this page will/should exceed their max allowed subscriptions per month.
So basically I will set up my own SQL DB and attempt to connect to it from the Facebook page and send the entrant's details to it.
Does Facebook allow you to do this through PHP? Or is there any easier alternative I should try?
Thanks Guys
Facebook Canvas and Tab pages are simply iframes pointing to a page on your server, so yes, you can do normal PHP stuff there.
Yes, you can do this using Facebook's iFrames. They used to use FBML, but that is now deprecated. See this post for more details and great examples on how to get started.
Essentially, you create a page on your own website that is no wider than 520px wide, and point your Facebook page tab to that.
I have a Fan Page and I need to post something on users Wall after clicking Like Button. Moreover I need to display different content for users who "Like" the page and for users who don't "Like" the page. Is there an application like "Static iFrame Tab" which already solves this? If not, then how to post something on users Wall? I downloaded the facebook.php file, but I haven't managed to find the required function there.
The user's 'like' status can relatively easily be returned by decoding the signed request sent by Facebook to the page.
I've built a simple fan/like gate that is available over on GitHub - it might help you get up and running.
With regards to posting to the user's wall. I would suggest using the Javascript SDK and reading the FB.ui documentation over on Facebook.
I'm developing this Facebook Application and I was wondering if it's possible (and how) to programmatically, through the Facebook PHP Graph API, press some 'Like' button on some page?
Of course, this is optional on my application... I'm still not ready to really explain what application I'm doing, but it would be interesting to code such a feature.
Is it possible somehow?
By your description it sounds like you're trying to get a user to like something without the users knowingly clicking a like-button. This sort of interaction is not condoned by Facebook, I think. There are various black-hatty ways to accomplish this though, one fairly elaborate one is descriped here: http://www.liquidrhymes.com/2010/08/25/smoking-hot-bartender-is-some-smoking-hot-facebook-spam/
UPDATE Sorry, I might be wrong. If you get stream_publish extended permissions from the user, you might be able to like posts on their behalf by doing a POST to /POST_ID/likes. See Publishing to Facebook in http://developers.facebook.com/docs/api
You cannot do this. Facebok wont let you do a POST to /POST_ID/likes, you can only do a get request to retrieve their likes. What you are trying to do is a violation of facebook's TOS. I would suggest just adding a like button and "forcing" them to like before they continue with your application. However, in my opinion even that is kind of silly because they can instantly go unlike it after they have used your application.
i was looking for the same thing, but not to force a user into liking something, but actually for their own protection.
here is where i come from: on a web site (maybe on multiple pages) there is an "I Like" button, implemented as described by facebook.
each time a user goes to that page, the browser will make a request to facebook, throught the iframe that contains the button, providing all the info that we are used to from a web server log file.
if the user has in the past logged in facebook and not cleared the cache. the request will also contain the cookie indentifying the facebook user.
so even more then analytics, facebook know all about the user activity on those pages.
so i wanted the user to only give this info when they decide to.
my solution was to have a button (as graphic only) on the page. when the user clicks it a new frame should open and only there the facebook code should be executed.
obviously on the new frame i could not put the normal "i like" code, since that would require a 2nd click for the user. at this point i would need the "programmatically clicking of the i like button".
it is not an opengraph solution, but it works: the frame just does a redirect to
http://www.facebook.com/share.php?u=URL