{"id":213163,"date":"2014-02-19T16:29:03","date_gmt":"2014-02-19T12:29:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=213163"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=213163","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u0438\u0442\u0432\u043e\u0440\u044f\u0435\u043c\u0441\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0439 \u0434\u0440\u0443\u0433 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043c\u0435\u043d\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0435\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043e\u0442 \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u0442 \u0441 \u043c\u043e\u0435\u0433\u043e iPad&#8217;\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u044f\u2026 \u041d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c\u2026 \u0410 \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0436\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0412\u041a \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<br \/>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 POST \u0438\u043b\u0438 GET \u0432\u043e \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0438\u043a \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435. \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 API. \u0417\u0430\u0448\u0451\u043b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u00ab\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u00bb \u0432 \u0412\u041a, \u0432\u044b\u0431\u0440\u0430\u043b \u00abStandalone\/Mobile-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u00bb, \u0432\u044b\u0431\u0440\u0430\u043b \u00abOAuth-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f\u00bb. \u0423\u0432\u0438\u0434\u0435\u043b, \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439:<br \/>  <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=APP_ID&#038;scope=PERMISSIONS&#038;redirect_uri=REDIRECT_URI&#038;display=DISPLAY&#038;v=API_VERSION&#038;response_type=token\">oauth.vk.com\/authorize?client_id=APP_ID&#038;scope=PERMISSIONS&#038;redirect_uri=REDIRECT_URI&#038;display=DISPLAY&#038;v=API_VERSION&#038;response_type=token<\/a><br \/>  \u0418 \u0442\u0430\u043a, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c id \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f iOS, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f iPad.<br \/>  <a name=\"habracut\"><\/a>\u0417\u0430\u043f\u043e\u0441\u0442\u0438\u043b \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0435\u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441 \u043d\u0435\u0433\u043e, \u043e\u0442\u043a\u0440\u044b\u043b \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435. \u041d\u0430\u0432\u0451\u043b \u043c\u044b\u0448\u043a\u0443 \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u042f\u0431\u043b\u043e\u043a\u0430, \u0438 \u0443\u0432\u0438\u0434\u0435\u043b \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0435 \u00abvk.com\/app3682744\u00bb. \u0421 \u044d\u0442\u0438\u043c, \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u043c\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c. \u041f\u0440\u0430\u0432\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0442\u0435\u043d\u0435 (\u0438, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438), \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0451 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c. \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0440\u043e\u043c\u0435 \u00abwall\u00bb \u0435\u0449\u0451 \u0438 \u00aboffline\u00bb \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u043a API \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0418\u043d\u0430\u0447\u0435, \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0441\u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0451 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u0412\u041a, \u043d\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0435 \u0432\u044b\u044f\u0441\u043d\u044f\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f). \u0418 \u0442\u0430\u043a, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0448\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=3682744&#038;scope=wall\">oauth.vk.com\/authorize?client_id=3682744&#038;scope=wall<\/a>,offline&#038;redirect_uri=REDIRECT_URI&#038;display=DISPLAY&#038;v=API_VERSION&#038;response_type=token<br \/>  \u0421 redirect_uri \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f \u043f\u043e\u0442\u043e\u043c, \u043a\u0430\u043a \u0441 \u0441\u0430\u043c\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c. \u00abdisplay\u00bb \u2014 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043e\u043a\u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, page, popup \u0438\u043b\u0438 mobile. \u0412\u044b\u0431\u0435\u0440\u0435\u043c page.<br \/>  \u00abv\u00bb \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e, 5.7. response_type \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 \u043d\u0430\u0434\u043e. <br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u043c \u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u00abredirect_uri\u00bb. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0442\u043e\u043a\u0435\u043d. \u0418 \u0442\u0443\u0442 \u044f \u0437\u0430\u043c\u0435\u0447\u0430\u044e \u00ab\u0415\u0441\u043b\u0438 \u0412\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 Javascript-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435&#8230;\u00bb. \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0441\u043e \u00ab\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u00bb. \u0422\u0430\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u00ab<a href=\"https:\/\/oauth.vk.com\/blank.html\">oauth.vk.com\/blank.html<\/a>\u00bb. \u0422\u0430\u043a \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=3682744&#038;v=5.7&#038;scope=wall\">oauth.vk.com\/authorize?client_id=3682744&#038;v=5.7&#038;scope=wall<\/a>,offline&#038;redirect_uri=http:\/\/oauth.vk.com\/blank.html&#038;display=page&#038;response_type=token<br \/>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0438 \u0445\u043e\u0442\u0435\u043b\u0438:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/568\/946\/704\/568946704ff0e6584640317e88176cb2.jpg\" alt=\"image\"\/><br \/>  \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u00ab\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c\u00bb.<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b13\/cbf\/7ef\/b13cbf7ef4496981a9f1b6aa9f3b35f3.jpg\" alt=\"image\"\/><br \/>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435, \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432 \u0432\u0438\u0434\u0435 <a href=\"https:\/\/oauth.vk.com\/blank.html#access_token=\u0422\u041e\u041a\u0415\u041d&#038;expires_in=0&#038;user_id=ID\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042f\">oauth.vk.com\/blank.html#access_token=\u0422\u041e\u041a\u0415\u041d&#038;expires_in=0&#038;user_id=ID\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042f<\/a>, \u0422\u041e\u0415\u0421\u0422\u042c\u041d\u0410\u0421<br \/>  \u0423\u0440\u0430! \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438. \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u00abwall.post\u00bb, \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435. \u041f\u043e\u0441\u043b\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0443\u043c\u044c\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u00ab<a href=\"https:\/\/api.vk.com\/method\/wall.post?owner_id=\u0422\u0423\u0422_ID_\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042f&#038;message=\u0422\u0423\u0422_\u0422\u0415\u041a\u0421\u0422&#038;v=5.0&#038;access_token=\u0422\u041e\u041a\u0415\u041d\">api.vk.com\/method\/wall.post?owner_id=\u0422\u0423\u0422_ID_\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042f&#038;message=\u0422\u0423\u0422_\u0422\u0415\u041a\u0421\u0422&#038;v=5.0&#038;access_token=\u0422\u041e\u041a\u0415\u041d<\/a>\u00bb. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0420\u0430\u0434\u0443\u0435\u043c\u0441\u044f.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u0440\u0435\u0434\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0430\u0445\u043e\u0436\u0443 id \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f WindowsPhone \u2014 3502561. \u0415\u0449\u0451 \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0440\u0430\u0434\u0443\u044e\u0441\u044c. \u0420\u0435\u0448\u0430\u044e \u0434\u043b\u044f \u0435\u0449\u0451 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043b\u0443\u043b\u0437\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0412\u0423\u0442\u044e\u0433 \u0438 \u0412\u041e\u043a\u043d\u043e. \u0418\u0445 id \u2014 3998121 \u0438 4147789. \u0421\u0441\u044b\u043b\u043a\u0430 \u0432\u0435\u0437\u0434\u0435 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0436\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u00abclient_id\u00bb \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 id \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043e\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0448\u0430\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0449\u0451 \u0438 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 Android \u0438 iPhone, \u043d\u0430\u0445\u043e\u0436\u0443 \u0438\u0445 ID (28909846 \u0438 3087106), \u0438 \u0442\u0443\u0442\u2026 \u0412\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u0433\u0440\u043e\u0437\u043d\u043e\u0435 &quot;{\u00aberror\u00bb:\u00abinvalid_access\u00bb,\u00aberror_description\u00bb:\u00abSecurity issue\u00bb}&quot;. \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0434\u0443\u043c\u0430\u0442\u044c, \u0432 \u0447\u0451\u043c \u0434\u0435\u043b\u043e. \u0427\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f Android \u0438 WindowsPhone \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 OAuth. \u0417\u0430\u0445\u043e\u0436\u0443 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e. \u0412\u0438\u0436\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 OAuth, \u043d\u0443\u0436\u0435\u043d \u043a\u043b\u044e\u0447 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0433\u043e \u0443 \u043c\u0435\u043d\u044f, \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u043d\u0435\u0442. \u0420\u0435\u0448\u0430\u044e\u0441\u044c \u043d\u0430 \u043e\u0442\u0447\u0430\u044f\u043d\u043d\u044b\u0439 \u0448\u0430\u0433 \u2014 \u043d\u0430\u0445\u043e\u0436\u0443 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0434\u043b\u044f Android&#8217;\u0430, \u0438 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e \u0435\u0433\u043e. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0434\u0432\u0443\u0445\u0447\u0430\u0441\u043e\u0432\u044b\u0445 \u0440\u044b\u0441\u043a\u0430\u043d\u0438\u0439 \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u043b\u044e\u0447 \u043d\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e. \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431. \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0430\u0434\u043e\u0435\u0434\u0430\u0435\u0442, \u0438 \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0434\u0435\u043b\u0430\u043c\u0438. \u0418 \u0442\u0443\u0442 \u0434\u043e \u043c\u0435\u043d\u044f \u0434\u043e\u0445\u043e\u0434\u0438\u0442!.. \u0412\u0435\u0434\u044c \u0432 \u043f\u0435\u0440\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 API \u0431\u044b\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u044f\u043c\u0430\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f, \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0441\u0442\u0430\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 OAuth, \u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u043d\u0435 \u043c\u043e\u0433\u043b\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438, \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043b\u0430\u0437\u0435\u0439\u043a\u0430. \u0418 \u0442\u0443\u0442 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0434\u0435\u044f (\u0432\u0441\u0451 \u0433\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e): \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=3682744&#038;v=5.7&#038;scope=wall\">oauth.vk.com\/authorize?client_id=3682744&#038;v=5.7&#038;scope=wall<\/a>,offline&#038;redirect_uri=http:\/\/oauth.vk.com\/blank.html&#038;display=page&#038;response_type=token \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f API \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0443\u0442 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f, 5.7. \u0410 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u0443\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 3.0? \u0410 \u0435\u0441\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e? \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043b\u044f Android: \u043f\u0435\u0440\u0435\u0445\u043e\u0436\u0443 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"http:\/\/oauth.vk.com\/authorize?client_id=2890984&#038;scope=notify\">oauth.vk.com\/authorize?client_id=2890984&#038;scope=notify<\/a>,friends,photos,audio,video,docs,notes,pages,status,offers,questions,wall,groups,messages,notifications,stats,ads,offline&#038;redirect_uri=http:\/\/api.vk.com\/blank.html&#038;display=page&#038;response_type=token (\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0434\u0430\u044e \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430) \u0438\u2026 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f! \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u044f \u043d\u0430\u0436\u0438\u043c\u0430\u044e \u043d\u0430 \u00ab\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c\u00bb \u0438 \u043e\u043d\u043e \u043c\u043d\u0435 \u0432\u044b\u0434\u0430\u0451\u0442 \u0442\u043e\u043a\u0435\u043d!<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e, \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430, \u043f\u0438\u0448\u0443 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 <a href=\"https:\/\/api.vk.com\/method\/wall.post?owner_id=\u0422\u0423\u0422_\u043c\u043e\u0439_ID&#038;message=\u0423\u0440\u0430\">api.vk.com\/method\/wall.post?owner_id=\u0422\u0423\u0422_\u043c\u043e\u0439_ID&#038;message=\u0423\u0440\u0430<\/a>! \u042f \u0441\u043c\u043e\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 Android!&#038;v=5.0&#038;access_token=\u0442\u0443\u0442_\u043c\u043e\u0439_\u0442\u043e\u043a\u0435\u043d. \u0417\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u043c\u043e\u0435\u0439 \u0441\u0442\u0435\u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u0440\u0435\u0448\u0430\u044e \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u041f\u0438\u0448\u0443 \u044f \u0435\u0451 \u043d\u0430 php:  <\/p>\n<pre><code class=\"php\">&lt;? class Vk{      const CALLBACK_BLANK = 'https:\/\/oauth.vk.com\/blank.html';     const AUTHORIZE_URL = 'https:\/\/oauth.vk.com\/authorize?client_id={client_id}&scope={scope}&redirect_uri={redirect_uri}&display={display}&v=5.0&response_type={response_type}';     const GET_TOKEN_URL = 'https:\/\/oauth.vk.com\/access_token?client_id={client_id}&client_secret={client_secret}&code={code}&redirect_uri={redirect_uri}';     const METHOD_URL = 'https:\/\/api.vk.com\/method\/';      public $secret_key = null;     public $scope = array();     public $client_id = null;     public $access_token = null;     public $owner_id = 0;      function __construct($options = array()){          $this-&gt;scope[]='offline';          if(count($options) &gt; 0){             foreach($options as $key =&gt; $value){                 if($key == 'scope' && is_string($value)){                     $_scope = explode(',', $value);                     $this-&gt;scope = array_merge($this-&gt;scope, $_scope);                 } else {                     $this-&gt;$key = $value;                 }              }         }     }      \/**      * \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 Api \u043c\u0435\u0442\u043e\u0434\u0430      * @param string $method - \u043c\u0435\u0442\u043e\u0434, http:\/\/vk.com\/dev\/methods      * @param array $vars - \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u0435\u0442\u043e\u0434\u0430      * @return array - \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 (\u043d\u043e \u0442\u043e\u0436\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435)      *\/     function api($method = '', $vars = array()){          $params = http_build_query($vars);          $url = $this-&gt;http_build_query($method, $params);          return (array)$this-&gt;call($url);     }       \/**      * \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e URI \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0432\u0430      * @param $method      * @param string $params      * @return string      *\/     private function http_build_query($method, $params = ''){         return  self::METHOD_URL . $method . '?' . $params.'&access_token=' . $this-&gt;access_token;     }      \/**      * \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430      *      * @param string $type \u0442\u0438\u043f \u043e\u0442\u0432\u0435\u0442\u0430 (code - \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 , token - \u0433\u043e\u0442\u043e\u0432\u044b\u0439 access token)      * @return mixed      *\/     public function get_code_token($type=&quot;code&quot;){          $url = self::AUTHORIZE_URL;          $scope = implode(',', $this-&gt;scope);          $url = str_replace('{client_id}', $this-&gt;client_id, $url);         $url = str_replace('{scope}', $scope, $url);         $url = str_replace('{redirect_uri}', self::CALLBACK_BLANK, $url);         $url = str_replace('{display}', 'page', $url);         $url = str_replace('{response_type}', $type, $url);          return $url;      }      public function get_token($code){          $url = self::GET_TOKEN_URL;         $url = str_replace('{code}', $code, $url);         $url = str_replace('{client_id}', $this-&gt;client_id, $url);         $url = str_replace('{client_secret}', $this-&gt;secret_key, $url);         $url = str_replace('{redirect_uri}', self::CALLBACK_BLANK, $url);          return $this-&gt;call($url);     }      function call($url = ''){          if(function_exists('curl_init')) $json = $this-&gt;curl_post($url); else $json = file_get_contents($url);          $json = json_decode($json, true);          if(isset($json['response'])) return $json['response'];          return $json;     }      \/\/ @deprecated     private function curl_get($url)     {         if(!function_exists('curl_init')) return false;          $ch = curl_init($url);         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);         $tmp = curl_exec ($ch);         curl_close ($ch);         $tmp = preg_replace('\/(?s)&lt;meta http-equiv=&quot;Expires&quot;[^&gt;]*&gt;\/i', '', $tmp);         return $tmp;     }      private function curl_post($url){          if(!function_exists('curl_init')) return false;          $param = parse_url($url);          if( $curl = curl_init() ) {              curl_setopt($curl, CURLOPT_URL, $param['scheme'].':\/\/'.$param['host'].$param['path']);             curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);             curl_setopt($curl, CURLOPT_POST, true);             curl_setopt($curl, CURLOPT_POSTFIELDS, $param['query']);             $out = curl_exec($curl);              curl_close($curl);              return $out;         }          return false;     }     \/**      * @param array $options      *\/     public function set_options($options = array()){          if(count($options) &gt; 0){             foreach($options as $key =&gt; $value){                 if($key == 'scope' && is_string($value)){                     $_scope = explode(',', $value);                     $this-&gt;scope = array_merge($this-&gt;scope, $_scope);                 } else {                     $this-&gt;$key = $value;                 }              }         }      }      \/**      * @param bool $gid      * @param array $files      * @return array|bool      *\/     function upload_photo($gid = false, $files = array()){          if(count($files) == 0) return false;         if(!function_exists('curl_init')) return false;          $data_json = $this-&gt;api('photos.getWallUploadServer', array('gid'=&gt; intval($gid)));          if(!isset($data_json['upload_url'])) return false;          $temp = array_chunk($files, 4);          $files = array();         $attachments = array();          foreach ($temp[0] as $key =&gt; $data) {             $files['file' . ($key+1)] = '@' . $data;         }          $upload_url = $data_json['upload_url'];          $ch = curl_init($upload_url);         curl_setopt($ch, CURLOPT_HTTPHEADER, array(&quot;Content-type: multipart\/form-data&quot;));         curl_setopt($ch, CURLOPT_HEADER, 0);         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);         curl_setopt($ch, CURLOPT_USERAGENT, &quot;Mozilla\/4.0 (compatible;)&quot;);         curl_setopt($ch, CURLOPT_POSTFIELDS, $files);          $upload_data = json_decode(curl_exec($ch), true);          $response = $this-&gt;api('photos.saveWallPhoto', $upload_data);          if(count($response) &gt; 0){              foreach($response as $photo){                  $attachments[] = $photo['id'];             }         }          return $attachments;      }      \/**      * \u0417\u0430\u043b\u0438\u0432\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 GIF \u0444\u0430\u0439\u043b)      *      * @param bool $gid      * @param $file      * @return bool|string      *\/     function upload_doc($gid = false, $file){          if(!is_string($file)) return false;         if(!function_exists('curl_init')) return false;          $data_json = $this-&gt;api('docs.getUploadServer', array('gid'=&gt; intval($gid)));          var_dump($data_json);          if(!isset($data_json['upload_url'])) return false;          $attachment = false;          $files['file'] = '@' . $file;          $upload_url = $data_json['upload_url'];          $ch = curl_init($upload_url);         curl_setopt($ch, CURLOPT_HTTPHEADER, array(&quot;Content-type: multipart\/form-data&quot;));         curl_setopt($ch, CURLOPT_HEADER, 0);         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);         curl_setopt($ch, CURLOPT_USERAGENT, &quot;Mozilla\/4.0 (compatible;)&quot;);         curl_setopt($ch, CURLOPT_POSTFIELDS, $files);          $upload_data = json_decode(curl_exec($ch), true);          $response = $this-&gt;api('docs.save', $upload_data);          if(count($response) &gt; 0){              foreach($response as $photo){                  $attachment = 'doc'.$photo['owner_id'].'_'.$photo['did'];             }         }          return $attachment;      }      \/**      *      * \u0417\u0430\u043b\u0438\u0432\u043a\u0430 \u0432\u0438\u0434\u0435\u043e      *      * http:\/\/vk.com\/dev\/video.save      *      * @param array $options      * @param bool $file      * @return bool|string      *\/     function upload_video($options = array(), $file = false){          if(!is_array($options)) return false;         if(!function_exists('curl_init')) return false;          $data_json = $this-&gt;api('video.save', $options);          if(!isset($data_json['upload_url'])) return false;          $attachment = 'video'.$data_json['owner_id'].'_'.$data_json['vid'];          $upload_url = $data_json['upload_url'];         $ch = curl_init($upload_url);          curl_setopt($ch, CURLOPT_HTTPHEADER, array(&quot;Content-type: multipart\/form-data&quot;));         curl_setopt($ch, CURLOPT_HEADER, 0);         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);         curl_setopt($ch, CURLOPT_USERAGENT, &quot;Mozilla\/4.0 (compatible;)&quot;);          \/\/ \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d \u0444\u0430\u0439\u043b \u0442\u043e \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 POST \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 video_file         if($file && file_exists($file)){              $files['video_file'] = '@' . $file;             curl_setopt($ch, CURLOPT_POSTFIELDS, $files);             curl_exec($ch);          \/\/ \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 (\u043d\u0443 \u043d\u0430\u0434\u043e \u0442\u0430\u043a!)         } else {              curl_exec($ch);         }          return $attachment;      }  }  \/\/ \u0442\u0435\u043f\u0435\u0440\u044c - \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441:     $config['client_id'] = 2890984; \/\/ID \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0442\u0443\u0442 - Android      $config['user_id'] = 3087106; \/\/ id \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043d\u0443\u0436\u043d\u043e \u043d\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445)     $config['access_token'] = '778eee10654727ea96fec257f4fa4b39bd23b403649265d0fe7c37c9b01bf4c25fcb66de3738d670d5bc9'; \/\/\u0442\u043e\u043a\u0435\u043d, \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u0435\u043d \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430     \/\/$config['scope'] = 'wall,photos,video'; \/\/ \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043c\u0435\u0442\u043e\u0434\u0430\u043c (\u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u043e\u043a\u0435\u043d\u0430)      $v = new Vk($config);  \t$method = 'wall.postt'; \/\/\/\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u0442\u043f\u0440\u0430\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u0441\u0442\u0435\u043d\u0443  \t$params = array(); \/\/\u0432 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435 - \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \t$params['message'] = 'I love Habrahabr!'; \/\/\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 - \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435     $response = $v-&gt;api($method, $params); \/\/\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c    print_r($response); \/\/\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON, \u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 ?&gt; <\/code><\/pre>\n<p>  P.S.: \u042d\u0442\u043e \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0448\u0443 \u0437\u0430 \u043d\u0435\u0434\u043e\u0447\u0451\u0442\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0441\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0438 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445<br \/>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/213163\/\"> http:\/\/habrahabr.ru\/post\/213163\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0439 \u0434\u0440\u0443\u0433 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043c\u0435\u043d\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0435\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043e\u0442 \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u0442 \u0441 \u043c\u043e\u0435\u0433\u043e iPad&#8217;\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u044f\u2026 \u041d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c\u2026 \u0410 \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0436\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0412\u041a \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<br \/>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 POST \u0438\u043b\u0438 GET \u0432\u043e \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0438\u043a \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435. \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 API. \u0417\u0430\u0448\u0451\u043b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u00ab\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u00bb \u0432 \u0412\u041a, \u0432\u044b\u0431\u0440\u0430\u043b \u00abStandalone\/Mobile-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u00bb, \u0432\u044b\u0431\u0440\u0430\u043b \u00abOAuth-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f\u00bb. \u0423\u0432\u0438\u0434\u0435\u043b, \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439:<br \/>  <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=APP_ID&#038;scope=PERMISSIONS&#038;redirect_uri=REDIRECT_URI&#038;display=DISPLAY&#038;v=API_VERSION&#038;response_type=token\">oauth.vk.com\/authorize?client_id=APP_ID&#038;scope=PERMISSIONS&#038;redirect_uri=REDIRECT_URI&#038;display=DISPLAY&#038;v=API_VERSION&#038;response_type=token<\/a><br \/>  \u0418 \u0442\u0430\u043a, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c id \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f iOS, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f iPad.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-213163","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213163"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213163\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}