multi-friend-selector action does not break out of iframe - ruby-on-rails

we have a facebook app and every time a user invites a friend the application redirects to the "action" URL but it's always facebook inside of an iframe. For the life of me I've tried every combination of URL's for the action, but it just won't break out of the frame.
Any idea how to avoid this?
Thanks,
Chad

problem resided inside our usage of the mini_fb library. works now. nice library.

Related

How to block urls on a web view using Swift

I need to block a certain part of the website from the web view because Apple will not approve that part of the website. How do I code it to block those urls and just stay on the current page?
(I am developing the application for a company and I am not their website developer and their guy is not very responsive so I cannot just remove the hyperlinks.)
Thank you for your help!
There are two solution.
One is to prevent it in UIWebViewDelegate function webView:shouldStartLoadWithRequest:navigationType.
Another is that server control this web show when it is really online.This will cheat Apple to pass your APP.

Redirecting all url's from a subfolder

i would like to redirect www.abc.com/folder1/index.php to www.example.com/index.php what exactly happens is when i am in a sub folder like www.website.com/subdirectory1/ and i click on the home button i get taken to www.website.com/subdirectory1/index.php instead of www.website.com/index.php so i need the rewrite rules to fix the issue.
i have already started rewriting the links one by one like
redirect /content/index.php http://www.example.com/index.php
but it takes a lot of time when new links are created and i cant be changing each one of them everytime. Thank you
edit: this only happens when friendly url is turned on.
I recommend you to take a read on the official documentation it could save you many times.

Can you put a hyperlink in a UIActivityItemProvider?

I have a huge link. I want to share this link when a user in my app posts to facebook from within the app. However my link is too large so I'd like to shorten it. Is there anyway (natively) I could have something like "Download the app HERE" where HERE redirects to my super long link?
What you're looking to do really can't be done with UIActivityViewController since each service has a completely different mechanism for encoding/representing links. Your best is probably to use some kind of URL shortening service such as Google's

Backbone and jQuery Mobile App resetting after browser back button

I am building an app using Backbone.js and jQuery Mobile. On some pages in my app I have external href links and I'm running into an issue.
When a user clicks and external href link, get taken to the external site and then hits the back button. My app does not load from the proper page where the user originally left the app from.
In fact my entire DOM is reset so it looks like my site gets a complete refresh and doesn't keep any of its former state.
I have been trying to search for a solution but this issue is kind of hard to word out. I hope it makes sense.
Does anyone have any suggestions?
UPDATE
Stupid error on my part.. I had a bad id set on the page and it didn't load the data I had saved in the session for it when a user returns to the page.. Changed the id and all is well. Thanks!
Link
Make you external links open up new tabs.
If you have used one html with multiple pages solution then there's an explanation for this.
rel="external" will cause a full page refresh so last page location will not be remebered. When you return to the last location it will trigger new refresh and the first page will be shown again.
This can be prevented with a multiple html page solution.

Login to a site using the cocoa framework

I am creating an ios app that needs to download a html page and extract some information from it. To get to the page I also need to login. I have looked everywhere for some code on how to login to a site using the cocoa framework, but every answer I see only seems to answer half the question. Here is the login site: romres.ist-asp.com. I need some code for writing something in the first field (the other two are left blank), then submit the form and then I need to be able to see the next page. I believe apps like Facebook should use som of the same technology, where you log in to a facebook and then you can see the contents of your profile.
Basically what you want to do is called scraping.
Scraping is really easy for sites that don't require authentication, but in your case what you should do is to inspect the POST request being made when logging in the site your interested in (try to understand of the service respond) and the POST request made, when already logged in, to retrieve each page.
The purpose of all of this is to have later the possibility to simulate regular HTTP requests that should came from a browser via code.
If you have any doubt ask in the comments.

Resources