I am currently developing an web application on Rails. I want the user to be able to create his own facebook page. I thought of creating custom Tab for him on my main application or page.
Can Graph API create Page Tabs programatically?
I do not believe that it is possible to actually create a new application via the API. This would open a flood gate for possible spam.
What you will be able to do is allow users to add your tab application to their page and then provide them with some customization. You can add a tab to a page programmatically with a post call similar to this -
https://graph.facebook.com/PAGE_ID/tabs
along with these parameters -
app_id - Tab application to be added.
access_token - An access token with permissions to manage the page (manage_pages).
References -
Pages Documentation
Permisssions Documentation
Related
I've developed an Ext JS 4.0.7 app for my company. It has various modules for different team's needs. Now, the company want to make sure only relevant people have access to relevant modules in an app. It's an ERP application which has CRM, MRP, Engineering, HR and Finance modules. Now, respective team members should have access to respective menus and pages and super admin will have access to everything.
I know how to control the menus based on user login. But not sure how to integrate user login screen into my app. I know basics of Ext JS and able to design a Login screen using form panel ...... but not sure how to make it as my app's first screen and upon successful login, let the user in and able to logout from there.
If anyone already developed such functionality, i request to share the solution here. Any pointers or code snippets will be a great help.
Thanks very much in advance.
My application has a header (company logo and app title - horizontal on north) and left menu and content panel.
So, here is how login/logout screen implemented.
When app is loaded, when viewport is loaded, on render, I load menu store and load 'Login' and 'Change Password' menu items in them.
When user enters login/pwd, via ajax call , will call servlet and process login data. Upon login successful, based on user role, respective menu json built in server side and menu store is loaded with this json. This json has 'Logout' menu by default. So, when user logs out, will load Login screen in content panel.
Not sure whether any other best ways to implement the same. But this is working well.
I am creating Google Forms programmatically with a Google Script project.
DriveApp is used to grant view access to anyone with a link.
var form = FormApp.create("Test form");
var formFile = DriveApp.getFileById(form.getId());
formFile.setSharing(DriveApp.Access.ANYONE_WITH_LINK, DriveApp.Permission.VIEW);
However the Form still requires "anyone" to sign-in and it's restricted to my G Suite domain users. I've tried to find how to disable this but I don't know how the feature is even called in Google Scripts.
See the attached image with a checked box:
Note: I can disable the sign-in requirement manually. But Forms are delivered to respondents automatically and there's no time to do this manual step.
I haven't had to do this, so I'm not sure if it's what you need, but have you tried using the setRequireLogin(requireLogin) method when creating your forms?
See https://developers.google.com/apps-script/reference/forms/form#setRequireLogin(Boolean)
i have to develop a multipage application that includes invocation of several web services.
My first page has a login page. based on the user input i have to traverse to next page while calling the next web service simultaneously. so obviously this all depends on the login page information that has the userid and password and the response from the web service such as personId etc.
i need to store this information temporarily for a particular session but... how to do this?
There are two kinds of page:
There are the UI states as seen by the user. Your Login page and your Next page are examples of these. From the user's perspective they see a succession of pages.
However you are writing an App, a single controlling thing that is in charge of all those "UI pages". I suppose that you are using MobileFirst to create a hybrid application that is effectively executing in a browser. From that browser's perspective you have a single HTML page. This is important, MobileFirst only works with single-page applications.
Now the browser loads the HTML and JavaScript for your single application page and that JavaScript stays resident as the user moves between the different "UI Pages", so the JavaScript can have variables for keeping the state you are asking about. The actual UI navigation from "page" to "page" is usually done by hiding and revealing DIVs.
Hence your WebService call results will be delivered (asynchronously) to some JavaScript function you define, and in the meantime your code can hide the login page and reveal the next page as required. The login data being held in JavaScript variabes.
All of this is simplified by using a framework such as AngularJS which abstracts the messy details of hiding and revealing and dealing with asynch delivery.
I'm hoping that a Bigcommerce rep can answer this. I had some trouble accessing my Bigcommerce store to get my support PIN so I'm posting here.
I am developing a Bigcommerce app and am wondering if the Bigcommerce user must automatically be logged into my app when they open it in the iframe, or can the app display a login page inside the iframe when it opens?
I've seen some apps first display a signup page for the user to fill out, and I was planning to also first display a signup page for the user to create an account inside the app, then ask them to log into the app on the next session. Is this allowed, or do I need to implement OAuth in a way that allows the Bigcommerce user to log into my app based on their store during the app load?
Thanks
I have created an app that is intended to display content on the shop (not the admin). I have created an application proxy so that my app is available through a url like:-
http://shopname.myshopify.com/apps/myApp
How can I expose this URL on the shop for users to click? Ideally it would be visible in the store's main menu as another tab.
Michael
The merchant will be able to go to https://#{shop.myshopify_domain}/admin/links and add that link. So you could instruct the merchant to add it themselves.
Unfortunately, at this time it doesn't look like these navigation links are API accessible, so you won't be able to add it automatically using your app.