Posting Videos on Facebook using own buttons, similar to share button - php

I'm working with facebook integration (API) and stuff and I was wondering if it is possible to post videos on facebook using something similar to the Share button.
I know the share button is depreciated, but it still works... but it pops out a dialog box. I'm trying to figure out how to do something like the share button but not have a popout?
I currently have an input field that I can publish to my facebook stream, but would like to see if I can say upload a video with that input field and click on my own created button and publish on the facebook stream?
Does this question make sense?
Thanks in advance!
EDIT:
I guess something like instagram app and the likes where if you post something to their own streaming, on facebook it'll show a photo too.

You have 2 choices.
If you want to actually upload the video to Facebook you may upload it using the PHP graph API, see this link: http://developers.facebook.com/blog/post/493/
Publish a feed to the user wall with data regarding the video.
You can do this by pushing a post request to me/feed and fill in the picture parameter with the thumbnail of the video and a link to it.
see: http://developers.facebook.com/docs/reference/api/user/ - under posts - create

Related

How to display Instagram photos on the website

I want to display instagram photos on my website, I have already done it
thanks to this tutorial https://www.codeofaninja.com/2015/01/display-instagram-feed-website.html
But I want to know is it possible to make popup as it is on instagram with the posibility to leave comment or to like a post on instagram, but not leaving the website?

Facebook Api: Create Post with image (PHP)

I am having troubles understanding the Facebook Api and hopefully someone can help me figuring out how to solve my problem.
What I need: Creating a Facebook Post on a FB Page with an attached Photo.
What I tried:
POST /v2.5/{page-id}/feed
-> I can only add the image as a link
I also tried using
POST /v2.5/{page-id}/photos
and then passed the returned ID to the object_attachment parameter on the previous (feed) API call. This seems to work but it does not look like the same when posting directly on Facebook.
I have an Link "facebook.com" under the Image and when clicking on it it opens the image in the user created Album instead of a Layer. (See attached image)how it looks like
Can someone please tell me how I should proceed to post a message with an image to Facebook so it looks like it was created on FB directly?

share custom text and image on user's google plus stream using php or jQuery

I'm trying to share text and image on user's google plus stream. This text and image would be set by me. What I'm trying to achieve is, User will login to his google plus account(if not login) and then this text and image will be automatically post to his stream.
I've tried this method for sharing
https://plus.google.com/share?url=https://encrypted-tbn0.gstatic.com/images?q%3Dtbn:ANd9GcRt6YQ8bwQdOVZqTG7wls93F-bwbENvH292Lfx_TBOY9lLYL5X5RhXVRvk&hl=en
It is working fine but I want to execute this using curl or jQuery so that I can set the text and image to the respected fields and submit this at my end.But in this I'm not getting that how is it working because it is not a form.
Please help me how to do this.Please let me know if I can do this with other way.
I've go through these links also but didn't find anything useful.
https://developers.google.com/+/api/
http://www.nextscripts.com/google-plus-automated-posting/
https://developers.google.com/+/web/embedded-post/
http://www.sanwebe.com/2012/11/login-with-google-api-php
https://github.com/google/google-api-php-client
set text to google+ share button
There are two ways to automate posting to Google+. One is app activities which do not show up on Google+ streams and Google Apps users can create posts that are limited to their domain.
Outside of those two options posting to Google+ has to be done with an explicit click by the user on Google owned UI. Interactive posts and the share button are the best options.
As you can see in Official Documentation
Share Endpoint
The share link invokes the Google+ share endpoint, which you can also link to directly:
https://plus.google.com/share
The Google+ share endpoint accepts the following only query parameters:
url The URL of the page to share. This value should be url encoded.
hl The language code for the locale to use on the Google+ sharing page.
So only this is available
https://plus.google.com/share?url=http://www.Google.com
or
https://plus.google.com/share?url=http://www.Google.com&hl=ar
or
https://plus.google.com/share?url=http://www.Google.com&hl=en
The only way to prefill the text of a share is to use Interactive Posts as
You can do that by set of steps as Full Example here

Posting an image to a Facebook event wall/feed? Not as a link based update.

I have searched the facebook API documentation and we cannot figure out how to post an image to a Facebook event wall feed.
I have only been able to post a link based update. I do not want to change the cover photo or profile picture, but I do want users to be able to upload an image post to their event wall.
I have had no problem making this work for facebook profiles, groups and pages. Not sure why events would work differently :/
If anyone can show me where in the Facebook API this is possible it would be massively appreciated!
Thanks :)

Share video on a page on facebook

I want to share a video from my site on a page on facebook, not on my profile.
For Eg: I want to share video on https://www.facebook.com/pages/Opticians/108277472608071
I have a button as post to wall. On clicking it the video should get uploaded on the above mentioned page. I searched a lot for this but I ended in getting only share button which shares the post/video to our profile. How can i share that video on a different page on facebook?
Any Help would be greatly appreciated.
The reference page for this API can be found here. And here is a Facebook Developers blog post related to your problem.
According to this resources Facebook provides graph-video.facebook.com endpoint, that can be used to upload a video to user's wall. You need to perform HTTP POST request to this endpoint passing video file in file POST parameter.

Categories