Vkontakte Audio Search with HTTP API - vk

Sorry for my English. I know very little English.
I am trying pull data from here : http://api.vk.com/api.php?api_id=2539386&count=200&v=2.0&method=audio.search&sig=c2b83d95d3d5914de0aa6ae7ca1c1007&test_mode=1&q=beatles
c2b83d95d3d5914de0aa6ae7ca1c1007 = md5->141080534api_id=2539386count=200method=audio.searchq=beatlestest_mode=1v=2.0mysecretkey
But return to me : "Incorrect signature: ifame/flash authorization"
Where is error ?

Should've read the API documentation first, the solution to your problem gets explained in pretty much the first line about the Audio Search method. You're getting an error because you're not authorized yet. You need to authorize your app first with rights with bitmask 8. More info about the Audio Search method | More info about the application rights bitmasks

You are using old method my dear :) Use like this:
https://api.vk.com/method/audio.search.xml?access_token=TOKEN&q=QUERY
Replace TOKEN with your access token... Replace QUERY with your search term
More info

Related

An unknown error has occurred on Graph Facebook

I tried to get Data from Facebook Page with the graph of Facebook but I have a problem.
When I try to go on link like:
https://graph.facebook.com/ID-PAGE?access_token=MY_ACCESS_TOKEN
I always do this to have the Data from a Page but since today I have the error Message: "An unknown error has occurred".
Thanks for help.
EDIT:
The bug is fixed : https://developers.facebook.com/bugs/486654544831076/?search_id
Have a look at my answer at
How to get user email and birthday from Facebook API Version v2.4
You have to specify each field you want to query now with v2.4. If you want to explicitly use v2.3, you need to prepend your calls by /v2.3 like this:
/v2.3/{page_id}?access_token=MY_ACCESS_TOKEN
Seems like there's currently a bug regarding requests made with app access tokens instead of user access tokens:
https://developers.facebook.com/bugs/486654544831076/
At this moment, I pretty much figured out what is happening, and it looks like a bug in the Facebook API.
For v2.3 and lower:
The /PAGE-ID call will return an Unknown server error when you don't pass ?fields=username (for example). If you do pass the fields option, it will work. You can get it out of the docs.
For v2.4:
This will work, but you will miss a lot of data, so you'll also have to pass the fields options. But if you don't pass that, this version will give you back only the most basic of details. This is as described in the version release: https://developers.facebook.com/blog/post/2015/07/08/graph-api-v2.4/
So the solution for now, would be to add the ?fields= everywhere you need, or to wait for Facebook to maybe ever solve it.
(And while you're at it, you might as well upgrade to v2.4 ;-)

Google Drive Sdk- Audio & Video Streaming in iOS Application

Hi Google Drive Staff,
I have tried to stream video files from Google Drive(Without Downloading). But I gets alerts that Sign In. I have went thoroughly with Dr. Edit sample App but i did not found any solution. I tried with downloadUrl , embedLink, webContentLink, alternateLink. All gives message to sign In. When i tried with exportsLinks i get a Null Message. What is the problem Here. If U have any suggestion Please Let me Know...
I have tried with Google Drive for iOS in iPod, there we can stream Video without Downloading.
Please suggest me to resolve this issue
Thanks in Advance...
I could solve it just by appending the access_token to the download url
audiofile.strPath=[NSString stringWithFormat#"%#&access_token=%#",downloadUrl,accessToken];
pass the strPath to your avplayer object to play music.
I did not try the video part. but i think a similar approach should work.
you can fetch the access token from the GTMOAuth2Authentication object
Note that you might need to refresh it if its expires.
Hope this helps you.
Regards
Nitesh
I think it depends what you mean by "stream". Last time I looked, the download links all had a content disposition: attachment header, which instructs the browser to download rather than render the content.
If you have your own client fetching the url, you can choose to ignore that header and do what you like with the content as it is fetched. imho, it would be nice if the client could add a parameter to the url to indicate to the Google servers that it wants the content to be rendered v. downloaded, but hey ho.
You need to authorize all requests to downloadLinks with an Authorization header. Read more about the authorization and learn how to retrieve your users an access token on https://developers.google.com/drive/about-auth

Getting user statuses/posts using API

I want to collect some posts/statuses using https://graph.facebook.com/search?q=sampleword, but it didn't return any results.
I use this word in my status: http://www.facebook.com/100002364215777/posts/189715107783962 , so it should be found.
What I did wrong/how to do it in another way?
For a start you will need to regeister as a facebook developer and get an access token.
Please read the Graph API doc It will tell you more about Authorization and how to do Searches.
I've found an answer few days ago - it's a bug: http://developers.facebook.com/bugs/251747031550291?browse=search_4ede11dc12bef5f22614385

Twitter API integration problem in iphone

I am integrating this API in twitter.
http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/
but when I am running it with my application I am seeing an message
" TWoah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ... it was probably an honest mistake ".
I have given right kOAuthConsumerKey and kOAuthConsumerSecret. What is wrong with the code ?
Thanks in advance.
You have to get new ConsumerSecret and ConsumerKey, the given keys in tutorial will not work. Sign in here and obtain keys for use.

facebook chat on the iphone using xmppframework

Well i started of by following all the instructions here:
http://code.google.com/p/xmppframework/wiki/FacebookChatHowTo
I used the recommended fork of the facebook api and tried the latest from:
https://github.com/facebook/facebook-ios-sdk/
My problem starts with the following error:
< failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">< not-authorized/></failure>
The error is a reply from facebook to xmppframework s response to a authentication challenge. The response that is made by the iphone is base64 encoded msg when i decode it i find 2 of the values are null:
api_key=(null)
and the
session_key=(null)
This is obviously the reason facebook is returning that error. But the problem i have is i cant seem to find any where to set these values in the framework. Besides i think the session_key should be pulled in from facebook anyway.
I guess what i want to know is a couple of things.
Has any one got the xmppframework working with facebook on a iDevice?
If you have got it working did you have to stray from the path of the instructions on http://code.google.com/p/xmppframework/wiki/FacebookChatHowTo ?
do you know of any other method to get facebook chat working on the iphone?
Any suggestions or help for my current dilemma would be appreciated. Happy to share my code if you want.
cheers
I wrote the Facebook integration for XMPPFramework. The api_key and session_key, come from a call to auth.PromoteSession. Facebook is trying to deprecate that call, so to enable it, you must follow step 7, in the HowTo:
Under Migrations, change Disable Deprecated Auth Methods from Enabled to Disabled and Save Changes.