Oracle Apex Home URL issue- Fixed page not dynamic - oracle-apex

I was earlier facing problem with logging into application in apex. i later realised problem was with home url where page id was set to admin page, so any other user could not access it. I have set authentication an authorization schemes like pages specific to admin/manager/employee.
However if i set any other page id in home url, all authorizations fail and nomatter which user i use to login, only that page shows up and other pages are not coming up.
Please help.

Vini,
Based on your limited info I'm assuming you have an app with pages for employes (10,11,12), pages for Managers (20,21,22), and pages for Admins (30,31,32).
My suggestion is to create an additional page (40) which you set as your home page.
On Page 40 have Pre-Rendering branches to the appropriate page based on Authorization. Authorization = Employee go to Page 10, If Authorization = Manager go to Page 20, etc.
Regards,
David

Related

django redirect to other page and auto login to that page

Is there a way to redirect to other page and automatically log into that page?
So it's like I make django webpage with login and create link to facebook. When user clicks to facebook link, it should automatically login to his facebook page. Of course, I will have his facebook username and password on db I used to create the website.
Is this possible? Basically, I am trying to create interface page on django with link to several different webpage and make user access to his page by simply logon to this interface page alone.
I suggest that you have a look at the Django-allauth, which is an Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication
It does most of the things you want, you can go through the documentation
https://django-allauth.readthedocs.io/en/latest/index.html

Oracle-Apex: Dynamically redirecting from login button

The scenario
I have implemented social authentication similarly to described by Dimitri Gielisin hist post "Facebook, Google and Custom Authentication in the same Oracle APEX 18.1 app" (http://dgielis.blogspot.com/2018/06/facebook-google-and-custom.html)
The pertinent point is that there is a button which has the request 'APEX_AUTHENICATION=FACEBOOK' which logs the user in and also hard codes the page that the user is taken to.
It works great. (However if I have a login menu item which directs back to the same page - the user name isn't updated on the page.)
The Issue
Default behaviour is for apex to redirect users to the login page when they attempt to access a page which is not publicly available.  After logging in the user is taken to the page hard coded page in the button (except for modal dialogues which just produce an invalid session error). 
I'd love it if they could sign in and then continue to the page they need to go to. Is there some not extremely cumbersome ways of doing that? I thought of trying to saving the page number I want the user to go to into an application item and then having the button redirecting based on the application item- but while I was saving the page number the dynamic redirect in the button is not working...and I feel like I'm fighting the apex framework...
Is there a better way? If not can a button reference an item for the page number? I was trying &APP_ITEM. but that didn't seem to work...
(I"m using Apex 20.1)

How to use facebook's Webhooks for non admin pages?

Am trying to use Facebook's Webhooks for pages to get feeds and ratings notification. Am able to get notification if I'm the admin of the page but am not able to get any notification for the pages I'm not an admin, even though I hold the page access token which is been granted by the admin of the page to my App.
I tried calling
https://graph.facebook.com/v2.6/<page-id>/subscribed_apps?access_token=<page-token>
but got
{"error":{"message":"(#200) User does not have sufficient administrative permission for this action on this page.","type":"OAuthException","code":200,"fbtrace_id":"BzRm1gqdTBH"}}
In Facebook documentation, its mentioned "page-related RTU objects will require that your app be installed on the page". Have installed my App in the respective page as page tab. Still its the same.

Facebook Page a Mandatory Step for Entry Submission

I want to make my facebook page like mandatory for submission same as below article but I am not getting where
"Promotion Builder under Application > Integration > Facebook Like Box" is located.
http://support.strutta.com/kb/facebook-integration/how-to-make-liking-my-facebook-page-a-mandatory-step-for-entry-submission
I will find it in Facebook apps settings or page where apps are shown?
Any solution?
Thanks
The setting you are referring to is part of Strutta's web app, not Facebook. Assuming you have an Strutta PRO account, you must login to your account to activate the setting:
http://www.strutta.com/auth/login?destination=account

Which access_token do I use to upload a video to an iframe based page-tab application?

I want to let users upload a video to a page that I am admin for. And the application has been added as a tab to this particular page.
Using the example from https://developers.facebook.com/blog/post/515/ resulted in an infinite loop where the page was reloaded every 2 seconds, and no auth_dialog was presented either. Could it be due to the fact that I am page admin?
So this application won't be posting anything to the users wall; it will only use the user_id and liked status of the page.
Which access_token should I use,
Ask the user to authorize the app?
Use the access_token that was created when the application was added to the page? Will this token never expire?