Whether the person signed for the group, and left it there pictures?

Good day! Is it possible using VK API to know whether the person signed on the same groups that I had left it there pictures? How it can be implemented in JS? Thanks in advance.
August 19th 19 at 23:08
2 answers
August 19th 19 at 23:10
Solution
Method users.getSubscriptions() returns the subscription of the user. If user_id is not specified, will return your subscription. Here is a simple code in the execute() (on that page , paste it and "Run") return two arrays: your and id groups:
var uid=12345; 
return {
 "my": API.users.getSubscriptions().groups.items
 "her": API.users.getSubscriptions({"user_id":uid}).groups.items
};

The first line determines the id of "the user" with whom to compare.

These two array is to compare. In the scratch Pade browser to run the following code:
var r = 
{"response":.....} // here is the entire response from the execute method
; // and the dot with a comma at the end.
var common = []; // here will be id shared groups
for(var i=0;i<r.response.my.length;i++){ if( !!~r.response.her.indexof( r.response.my[i])) common.push(r.response.my[i]); } common; if firefox'scratchpad and press ctrl+l, the code is executed but the comment will be inserted the content of the array< code></r.response.my.length;i++){>
br><br><b>Post Lee photos</b> – it is necessary to view the entire photo technique <a href="https://vk.com/dev/photos.getAll" rel="nofollow" target="_blank">photos.getAll()</a>. The owner_id option – in turn, each of the General groups. Every photo to watch the value of the field user_id – you need only those where it is equal to the desired user.<br><br> In a single method call you can get up to 200 photos, so add the parameter count=200 and offset parameter flipping for 200 pictures into the story. You can again execute method to charge a fee – so it will be 25*200 = 5000 photos in a single call.
August 19th 19 at 23:12
to find out whether the person signed on the same group that I

https://vk.com/dev/users.search

and if he is there pictures?

if the posts are anonymous, you'll never know. if no - through https://vk.com/dev/wall.get parse the posts for this user
if the albums look - https://vk.com/dev/photos.getAlbums

How it can be implemented in JS?

https://vk.com/dev/Javascript_SDK

Find more questions by tags JavaScriptPHPVKontakte