Facebook App: Nothing happens when trying to add domain - facebook

I've made a Facebook app to implement fecebook login on my php Saas solution.
I can't add a domain in the settings->advanced section.
A dialog is shown. I write the domain and click the [add] button. Now a spinner is showing and just keeps spinning. I've tried everal computers and mobile devices. It is the same everywhere.
What do I do wrong?
I have set the domains in then settings -> basic sections and I have added all the url callbacks.
image af dialog with spinning button - with protocol
EDIT: It is the same thing with or without protocol. The placeholder in the field states to enter an URL but either with or without the protocol part nothing happens.
image af dialog with spinning button - without protocol

Related

Flutter mobile app, clicking an existing and valid physical back button is not working, even though the Cucumber step succeeds

I am using JDK 1.8_202, appium 2.0.0-beta.46, node v18.12.0
There is a programmer developed back button (<--) whose className as "android.widget.Button" whose className as "android.widget.Button", but when I try to verify it using search option, I am getting this pop up.
Programmatically nothing is happening, even though as a CucumberBDD step, it is showing as executed.
I am executing on locally connected physical device 'Samsung galaxy note 8'
Why back button tap/click action is not working even when it is executed??
I open my flutter mobile app. I am at landing page
Do some navigation forward. Comeback to a dashboard page
From dashboard page to get back to landing page, there is a back button like (<--), which I manual tap and can get back to landing page, with no problem.
Programmatically nothing is happening, even though as a CucumberBDD step, it is showing as executed.
From Appium Inspector I see it's className as "android.widget.Button", but when I try to verify it using search option, I am getting this pop up.
The same button with the same click() method is working fine in another scenario.
I am using JDK 1.8_202, appium 2.0.0-beta.46, node v18.12.0
Does the previous navigation affects the functioning of the button click() action ? It should not be logically.
Why back button tap/click action is not working even when it is executed??

Ionic2 - Login and then Side menu

I am creating an App with Ionic2 and the requirement is -
- the app when first loaded will show a Log In page and when logged in
- will have a Side-Menu enabled pages
The starter project shows that the Side Menu as the root of the app and loads first before any other page is open - then it loads the other related pages.
How can I build an app that Loads Log In page first and then set the Side Menu as the main navigation and never shows up the Log In screen??
I did this with ionic 1 but not being able to figure out with ionic2
Please help.
One solution would be to disable menu on Login screen and then to enable it after login.
You can disable menu by injecting MenuController and then use:
import {NavController, MenuController} from 'ionic-angular';
ionViewDidEnter() {
//to disable menu, or
this.menu.enable(false);
}
ionViewWillLeave() {
// to enable menu.
this.menu.enable(true);
}
#Digital IQ, you have to set your login page as the rootPage in your existing app.ts file and use MenuController in login page to make menu enable onPageDidLeave.
The example for this is available in ionic conference app where they have tutorial page before getting in to the actual application. Refer this for menu control and this (line 50) to set the initial page.
The above problem must have occurred because the user had surely logged in, but the changes i.e. setting it as the current user didn't take place in side menu page.
For that you can use Events API
Events is a publish-subscribe style event system for sending and responding to application-level events across your app.
For reference, go through the following answer-
Ionic 3 refresh side menu after login
kind Attn [vahid najafi & Aish123]
I tried something more easy and I found it working.
I set the LogIn page as the root when the app first loaded - and I removed 'menuToggle' button from this template.
Then I imported the Component I want to redirect on Log in
I created a singIn function in LogInPage class as follows:
signIn (){
let navRef = this.app.getComponent('nav');
navRef.setRoot(HelloIonicPage);
}
and it worked like a charm

How to Detect if WebView is showing a specific Website on iPhone

I am new in iOS development and trying to make a button called backhome which is only visible when the user tap on the changes the native Website I set in the loadRequest.
Now my question: Is there any way to detect if the user leaves the website I set for e.g in a if statement?
Set a delegate for your "UIWebView" object and then write a method to respond to:
webView:shouldStartLoadWithRequest:navigationType:
The request parameter in that call has a URL and from there, you can tell if the user has left your default website.

bookmark button fails to load the canvas

when using my app bookmark button that is displayed in the top right of any canvas application interface (apps.facebook.com), I don't get my app loaded/reloaded in the iframe, the iframe show the "loading" animation but ends void with only the facebook footer
the link of the bookmark is correct: it will load successfully the app if pasted in a new browser window; the URL of the apps.facebook.com interface change to the correct URL clicking the bookmark but the application is not loaded, but forcing a reload of the whole browser page the app is correctly loaded... it seem that the iframe loading fails but not the js URL edit
I'm puzzled because checking my server log I don't catch any request from facebook for the canvas page, therefore it is failing before
anybody has observed any similar behaviour?
As Claudio Felicioli figured it, you must set the App Namespace.
https://developers.facebook.com/apps/
On the left, Click on your application
Click Edit Settings
Type information for App Namespace
Click Save Changes

replace Twitter link by Read more

In my app I have a WebView Containing a Twitter account for and every tweet there is a link take you to a specific website
my question : can I replace the links of those webpages by read more ?
You can override the link itself so that when the user clicks, instead of it jumping to that website, it calls your method.
Create an instance of UIWebViewDelegate,and implement the method:
"webView:shouldStartLoadWithRequest:navigationType:
Sent before a web view begins loading
content."
...and return "false" when the link clicked is one of those external links.
Then, also, do whatever custom action you wanted to do - e.g. popup a new UIView that contains the "read more" content you wanted to display