I am working on one website to convert its existing site into Angular, I am using Angular 4, my client wants to keep URL in new site same as its previous site.
Previous site URL was having .php extension in URL e.g. site have agent section with agent listing and agent single page, agents are getting managed from admin it has URL like
www.example.com/our-realtors.php
and for agent detail page
www.example.com/jenny-blain.php
I am using angular default routing strategy. For first time URL is working fine and data is getting fetched but once I reload the page component is not getting loaded.
Can anyone let me know what can be the issue or how can I achieve this?
Currenty I am in development mode.
Thank you in advance.
Related
Please accept my apology if my question has a simple answer. I'm trying to add a functionality to login through google account with PHP and OAuth 2.0. I tried this on a simple login page and its working fine.
Now, I have a page of recipe where user can give their comment. Page URL is something like this mysite.com/recipe-123-recipename. I changed URL through .htaccess. Original link is mysite.com/single_recipe.php?id=123&title=recipename.
There is a option of redirect URL in google API console and it is optional so I left it blank. Every time I try to use script i get redirect URL mismatched error.
I just need to know how can I set redirect URL like single_recipe.php?id=123&title=recipename so user get back to this page? or I need to change the script? I have added facebook login in same page and it is working great.
Please guide me I tried everything but no luck so far.
I use an application added to a Facebook page to subscribe to real-time updates which has worked fine and still works fine. However, the old way of adding an application to the page using add.php seems to redirect to the dialog for adding pagetabs now.
Add.php: https://www.facebook.com/add.php?api_key=XXX&pages=1&next=URL
This no longer works and redirects to:
https://www.facebook.com/dialog/pagetab?api_key=XXX&next=URL
This would be fine if we could use the application on the page without displaying an empty pagetab on the wall.
So does anyone know of any changes to this process and a new way to add an application to a page as an application and not a pagetab? Will this require using the Graphi API and manage_pages permission to do it or is there a simple URL method we can follow?
Thanks in advance.
Here is the correct way to add an Application to a page that is not a page tab.
https://developers.facebook.com/docs/graph-api/reference/page/tabs/
Basically the old add.php method has been removed but you can still add applications that do not contain a pagetab to a page by making the following call:
POST: /{page-id}/tabs
app_id = {app-id}
is_permanent = false
you need the page access token to do this.
Further information can be found in the bug report here: https://developers.facebook.com/x/bugs/779220265438820/
Thanks to Pragati on that bug report who pointed me in the right direction.
This is no longer possible to do.
You can get part of the way there with Open Graph objects, but they don't give you any ability to run code on the page and are restricted to particular display typesl
I've built a little mobile web app for the town I live in which aggregates a lot of info and makes it readable. Lately, on my android phone browser, when I go to a certain page it asks me do I want to open it with Browser or MX Android Player. I've looked at the request headers in Chrome and I can't find anything wrong with it. I've had someone test this on an iphone and the issue doesn't happen. Any ideas?
The site in question is http://sligo.me
The page throwing errors is http://sligo.me/Events.
This has nothing to do with your page. It rather has something to do with MX Android Player. Android allows its app to register for URLs to be handled through them. In this way if Chrome is installed on a phone and the user clicks on an URL the system will ask if it should use Chrome or Browser to open the URL. The user can now select a default app or make the choice every time she clicks on a URL.
An app can also register for some URL parts only. A good Twitter app would register for all URLs with the host Twitter and then display the content of that page inside the app.
I guess that MX Android Player registered for some URLs and the http://sligo.me/Events matches that filter. You could experiment a little bit and try to change the URL part that the filter matches. More information about this filtering can be found in the Documentation about Intents and Intentfilters
Am new to facebook application.
Basically i want to be notify when some one removed my application from his page.
using application > advanced > Deauthorize Callback: URl. i can able to receive signed_request.
But i needs to know the page id which page user has removed my application.
Since in my application user can add my app to multiple pages of his account.
so when he remove my app from any one of that page. i needs to know the page id.
looking forward to hear from your answers in this regards.
Unfortunately it is not possible just with "Deauthorize Callback". However, you can save current page id to your database and when your application have received this callback you'll have an idea what page what the last one.
Hope that helps.
I've build a web site that get source code of the link entered by the user using(HTML DOM), then checks the source depending on standards.
the problem is some web sites can't evaluate.
this is My Web Site link you can check from here.
when you enter google URL in the text-box, the web site functionality works successful, but when trying the example http://www.alwatan.com.sa/Default.aspx it doesn't work. no information appear.
can one help me?
The URL http://www.alwatan.com.sa/Default.aspx automatically redirects to http://www.alwatan.com.sa/Default.aspx?issueno=3902
If you enter the URL with the query string, your application works (presumably) as intended.
I imagine there is no content at http://www.alwatan.com.sa/Default.aspx, and the issueno is a required parameter.