instafeed help required to work on website - javascript

I am newbie to scripting and website designing. I am helping as well as getting hands on experience on my friends website. Earlier instafeed was working but since last couple of days its not showing any instafeed.
check the website. http://qminmagazine.com/
Please help me to figure out whats wrong.
Thanks in advance.
-Jitu.

So, a simple network capture throws the following error:
Error from Instagram: The access_token provided is invalid.
On June 1st 2016, Instagram rolled out new API restrictions, which limits users to accessing only their own content through the Instagram API by forcing each app into a sandbox. To get access to public content, your app must be manually approved by Instagram.
Chek Instagram's update from the 17th of November 2015 :
Instagram Platform and documentation update. Apps created on or after Nov 17, 2015 will start in Sandbox Mode and function on newly updated API rate-limits and behaviors. Prior to going Live, and being able to be used by people other than the developers of the app, these apps will have to go through a new review process. Please read the API documentation or the Change Log for more details.
Any app created before Nov 17, 2015 will continue to function until June 2016. After June 2016, the application will automatically be moved to Sandbox Mode if it wasn't approved through the review process. The previous version of our documentation is still available here.
With the new rules, having Instagram tag feeds of public content isn't an acceptable use case, so even if you try to get your app approved, it most likely won't. So, with Instafeed you can only get your own posts, severely limiting its functionality.
This GitHub discussion delves deeper into the topic and available workarounds.
How to submit for permissions review
Go to Manage Clients and select the app you'd like to submit for Permissions Review
Click the Permissions tab
Click the Start Submission button
Describe the purpose of your application and how you intend to use each permission

Related

Warning you must upgrade to the latest version of google-spreadsheet

I am trying to implement a project when I get some data from a google spreadsheet and insert into a database. Inserting part is not important for me yet. When I am trying to get the data from google spreadsheet document I get this Warning!
WARNING! You must upgrade to the latest version of google-spreadsheet!
Google's deprecation date for the v3 sheets API is March 3rd 2020
Bad news - this version of this module will stop working on that date :(
Good news - the new version of the module uses the newer v4 api :)
However, there are breaking changes, so please see the docs site
https://theoephraim.github.io/node-google-spreadsheet
It's still give me the data, but I get the warning.
Somebody who knows how do i get rid of that warning?
The Google Sheets API has been upgrade from version v3 to version v4
What does it mean?
It means that certain method names, parameters and building of the authentication client have changed.
If you are using an old code based on v3, so building the authentication client as
const sheets = google.sheets({version: 'v3', auth});, your code will stop working in the near future
While Google specifies March 3rd 2020 as the deprecation date, there is still some grace period, but your code could stop working any time!
So, please update your code by changing to const sheets = google.sheets({version: 'v3', auth});
Adapt other parts of the authentication flow if necessary to the new procedure provided in the quickstart for v4
Go through the references to see if any of the requests you are using has changed and adapt as necessary.

How to add the Chrome account name to an HTML element

I'm making a "new tab" page just for fun and to learn.
I want to add the user name (if the user is logged in) to a element. I have no idea on how to do this
I'm not asking you to do my work, but to guide me and help me with some documentation.
EDIT: It is a chrome extension
Question could use a little more information BUT — Login / Logout Authentication for users is generally a bigger job than you would at first think.
Coming from a freelance web / app development background I generally consider an authenticated web app at least twice as complicated as the unauthenticated version of the same functionality.
You mentioned new tab landing page so probably you are going to be heavy into these docs on Chrome extension authentication:
https://developer.chrome.com/apps/app_identity
Here is a little bit more on Chrome app authentication: https://developer.chrome.com/apps/identity
From the above Chrome docs the steps your app needs to perform are:
Add permissions to your manifest and upload your app.
Copy key in the installed manifest.json to your source manifest, so that your application ID will stay constant during development.
Get an OAuth2 client ID for your Chrome App.
Update your manifest to include the client ID and scopes.
Get the authentication token.
There are some great resources already on stackoverflow relating to chrome extension authentication, specifically this one:
chrome.identity User Authentication in a Chrome Extension
It looks like there are also others working on this same problem:
https://gist.github.com/raineorshine/970b60902c9e6e04f71d
Hopefully that gets you headed the right direction. Welcome to stackoverflow!

Why does the OneDrive js Picker in Edge go back to the redirect URI instead of showing the files?

I have copied the sample code from the OneDrive Picker JS example to my playground site, replaced the clientId with mine, and then when trying it in MS Edge, the new window will open. After signing in, it displays the original page instead of the picker. Why isn't it showing the picker? In all other major browsers (including IE 11) it shows the picker...
I tried toggling the option Allow Implicit Flow in the App registration page but that didn't help.
Update 9/23/2016
I downloaded the sample code to my site, pasted in my clientId and loaded it in Edge - the issue still persists. This leads me to believe it is an issue with the app registration. In the app registration I see that there are options for selecting Microsoft Graph Permissions - both Delegated Permissions and Application Permissions - I tried adding Files.Read and then Files.Read.All but neither improved the situation. Is there another setting in the registration I should configure?
Update 10/3/2016
I noticed the other day that the browser requirement for Edge is version 25+ and I had version 20. I spent a few hours installing non-critical updates to the OS, which updated Edge to version 38. Now when I try the sample code on my playground site I see the new window open, the main window will refresh within a few seconds and after I login in the new window, it stalls on this oauth2 authorize url.
Turns out it was a Windows 10 network group policy that was blocking this.

Fanbox featureLoader script not found

I have been using the legacy Featureloader.js.php script for some time now without any problems at :
https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
For some reason this server seems to have stopped responding in the last day or so - i get a server not found response in Chrome developer tools -
We want to continue to use the Fanbox plugin, as it allows us to style the returned content appropriate to our site - the new likebox doesnt have that option
Wondered if anyone knew why that server is currently not responding, and whether it's simply a temporary problem or might be a permanent issue?
Thanks
From the Facebook blog:
Removing FeatureLoader JavaScript SDK. As part of the OAuth2 migration, we announced that the FeatureLoader SDK is no longer supported as of October 1st, 2011. On February 1st 2012, we will remove FeatureLoader. Please ensure that your app is using the JS SDK.
See here: https://developers.facebook.com/blog/post/638/ (under "Upcoming Breaking Changes on February 1st 2012")

Website needs button for Blackberry users to add event to their calendar

I am showing a list of events in a calendar-like display on our website, and would like visitors to be able to click a link/button to add a certain date to their own computer/PDA/phone calendar.
For Outlook and iCal I return an ICS file to the user. For Google Calendar there is a simple URL which does it. I would like to cater for Blackberry users too, but am unsure what format they need, and whether their browser supports such actions.
Googling for answers has confused me as to whether Blackberrys can accept ICS files or need VCS? I have never touched a Blackberry either, so am generally very ignorant of all aspects!
Feel free to shout about Android to me too.
Thank you.
Seems like you are searching for blackberry.launch.newAppointment().
FTA:
The newAppointment() method creates a new appointment in the calendar application. The user must save the appointment before it is saved to the calendar.
Syntax
blackberry.launch.newAppointment({ summary, location, allDay, start, end, freeBusy, note })
And regarding user interaction, Just a small clarification (FTA):
The blackberry.launch object provides methods that lets you access core and add-on BlackBerry® applications through JavaScript®. Depending on the application, you can either launch the application or open the application and create a new item, such as a calendar entry or a task, and prepopulate any of the entry fields. Although the methods of the blackberry.launch object can open and create new items for an application, changes are not made to the application without confirmation from the user. For example, if you use the blackberry.launch object to make a phone call to a specific phone number, the user is prompted to confirm whether the user wants to proceed with the call before the number is dialed. Similarly, if you create a new item for any application, the user must save the item before it is added to that application.
Edit: it seems there's a workaround for integrating .ics on blackberry.
You don't need to have those devices to develop for them.
Being so oriented toward mobiles, I think you should definitely get SDK's / official simulators of these devices, and test first hand what works and how.
Blackberry:
http://us.blackberry.com/developers/resources/simulators.jsp
Android:
http://developer.android.com/sdk/index.html
As far as I can tell, BlackBerry just doesn't support an .ics file the way other platforms do. I'm using the BB Storm 9559 (Verizon) emulator to test mobile web pages, and have tried all the .ics options (including the METHOD:REQUEST workaround) to no avail. But the good news is, as mentioned above, a simple client-side JavaScript can be used to create BlackBerry calendar appointments by clicking a link on the mobile web page.
#Rodrigo Hahn's answer above is correct, although you should check the BlackBerry developer docs for a more complete explanation of the syntax. Check here for the official explanation of the blackberry.launch.newAppointment() method:
http://docs.blackberry.com/.../blackberry_launch_971534_11.jsp
I've implemented this code myself and it works great on my 9550 emulator. See a working example at http://medcomp.mobi/tradeshows
Hopefully this helps someone!
Cheers.

Categories

Resources