As a newbie in facebook apps , I copied the social-cafe facebook app and tried to publish it using all the details that was provided in the readme files .
I read the basics of the facebook app from here
For instance my app is not publishing story to stream.Actually I am not able to login through my app ,, :(
All tags are there, graph api is all set ,but still app is not working.
The problem is that when I click a drink to post it to my stream, I get an error that says:
There was a problem with your purchase. Please Login again.
In debug Tool got this Info:-
Response Code: 206
Open Graph Warnings That Should Be Fixed
Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Small og:image: All the images referenced by og:image should be at least 200px in both dimensions. Please check all the images with tag og:image in the given url and ensure that it meets the recommended specification.
Thank you in advance!
Related
Im using the PHP example code given in Youtube API v3 : https://developers.google.com/youtube/v3/docs/captions/download , to download captions from 3rd party, publicly available YouTube videos in my webapp i.e. I have NOT uploaded the content on Youtube.
I am able to get access to the list of caption tracks, but unable to download the caption using the caption track ID from the received list.
The error that shows up upon attempting to DOWNLOAD is:
Error calling GET https://
www.googleapis.com/youtube/v3/captions/Lw0e5xDNU17GFafOl8DcyeOtwzWJTf9V?tfmt=srt&alt=media:
(404) Not Found
(I have tried removing tfmt (optional parameter), but still gives an error.)
But the error is different for attempting to DELETE captions:
Error calling DELETE https://
www.googleapis.com/youtube/v3/captions?id=Lw0e5xDNU17GFafOl8DcyeOtwzWJTf9V:
(403) Forbidden
Therefore it seems that captions.download is NOT forbidden for users other than owner (just like the captions.list is NOT forbidden) and therefore I would like to use this data for my webapp.
Any help is gratefully received.
Thanks,
Nikhil
I just tried the URL you mentioned in a browser and in the API explorer, and in both cases I received a 401 when I had no oAuth token and a 403 when I had an access token (since I'm not the owner), so the endpoints are acting as intended; according to the documentation, downloading captions requires oAuth consent from the owner of the video.
Perhaps, if you're getting 404s instead, there's a problem in the PHP library?
I have found another way to access any YouTube video's caption data.
The code is written in Ruby.
Read Youtube transcript (captions) from any public Youtube video
Works great, I just need to find a way to integrate this with my webapp.
I've been visiting this forum for years, but this is my first ever question. Any help would be appreciated!
I am writing a web service to pass groups from one application into Facebook and invite the authorised people into them and set a nice pretty cover photo that is generated and stored within the application.
The group creation works splendidly after a fair old bit of head scratching, however, when I try to set the cover image, I am getting a rather useful error message back as below.
OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred."
It's a PHP application on Code Igniter. According to Facebook's delightfully accurate API documentation, this is a simple matter of a cUrl post to 'graph.facebook.com/$groupId' passing the same auth token I just used to create the group and perform the invites and a single JSON encoded parameter of 'cover_url' => $urlOfImage .
A simple task in theory, however, I have spent all day today and a significant chunk of yesterday trying to get this to work without much success.
I have tried posting the image as a Curl object as is necessary in other areas of the Facebook API, and it appears to be trying giving me an error that the image is generating a 404 error (it isn't, when I checked the access logs, it was never requested).
Please be someone out there who has had some success with this.
This has now been fixed by Facebook
Twitter has launched new profile design
there is a big header image like facebook cover image
what i want to know is if there is any way i can update user's header image using twitter api??
If you look at the Network log while updating your header image in your Twitter account, you will see a call to 'upload_profile_header' went saving the new header image.
Look at the request payload to get the parameters needed.
authenticity_token=...&fileData=...&fileName=...&height=260&offsetLeft=0&offsetTop=0&uploadType=header&width=520.
Theoretically if you were gonna POST to account/upload_profile_header with all the parameters listed above this should be working.
I haven't tested this concept yet and it is just my suggestion.
Let me know how it went
There doesn't seem to be from looking at the API documentation, no: https://dev.twitter.com/docs/api/1.1#112
It wouldn't surprise me if they don't either. Facebook don't allow third-party apps to set cover photos as it can lead to apps essentially "hijacking" user profiles for their own promotion gain.
I'm building a small web game which involves the player pulling down 6 public images from Instagram in relation to a tag.
I don't want the player to have to log into Instagram in order to play.
The Instagram API documentation seems to be leaning heavily towards a user log in.
I found an Instagram class on GitHub (linked below) which is the closest thing to what I'm looking for that I've found. However it is mostly for a user login, it does have bits for public access.
https://github.com/galen/PHP-Instagram-API
I've got the Instagram Object but I can't use it
I'm new to all API so the answer may be obvious.
Sites Pulling in Public images
http://searchinstagram.com/
http://london-now.jit.su/
Question ?
Could someone show me a way of pulling down images from Instagram related to a tag, using PHP?
I have a jQuery plugin - https://github.com/rickydazla/Hashtagagram
I've found this url, not in Instagram's documentation, but it's very similar to the "oficial" url:
https://api.instagram.com/v1/tags/edinburgh/media/recent?client_id=CLIENT_ID&callback=CALLBACK_URL,
where CLIENT_ID and CALLBACK_URL have been defined when you have created your aplication.
Is it possible to change someone's profile picture via the Facebook API?
The Graph API discusses POSTing a picture to an account but I see nothing related to the direct altering of a user account. I suspect they only recognize GET requests under their RESTful API (for the user area). Thus, a no.
That's just information gleaned from the Facebook API docs, however. I could be missing something though.
not possible: Facebook API/PHP - Is it possible to change a user's profile image via FB Graph API?, and also my own experience.
This feature is not possible, period. Although you can upload an image to the Graph API and then redirect the user to the permalink of that post :)
It's possible by adding makeprofile=1 at the end of uploaded photo url. You can find example (PHP) and demo here: http://4rapiddev.com/facebook-graph-api/php-change-facebook-profile-picture-with-graph-api/