Separate cookies when loading separate WKWebViews? - swift

In my app, I have multiple WKWebViews that can visit the same social network pages. But I want to allow users have multiple accounts on those pages. Right now when two webviews go to the same network, it logs into the same account.
Is there a way to load different accounts when accessing different wkwebviews?
Thank you

you should be able to do this if you force him to log out every time he opens a new page of the same social network.

Related

Making 'app' available to other people's pages

I've got incoming messages working via webhook, but what I cannot understand is how I make this available to other users.
I run a SaaS that's used by many different organisations, so I want to be able to give those organisations (who each have a subdomain on my domain) the ability to 'connect to facebook messenger', so that all of the messages to their facebook page (whatever that may be), come into their portal view on my platform.
The only way I can see this working, is by getting each user to register as a developer, and go through all the set up that I did to get my test example working.
But I must be missing something? What's the workflow to enable this, simply, so that users can connect in this way?
You can have multiple Facebook pages connected to your single Facebook app. But you would require permissions from Facebook for that. You can read about permissions here: https://developers.facebook.com/docs/facebook-login/permissions/

Linking Facebook app to existing facebook page on different accoun

I have a a Facebook app that I would like to link to a page. The problem is that they were created on different accounts. Is there a way to link the two or do I have to start from scratch? I would hate to lose the likes I have so far on the page or the users that are using the app. Thanks
I'm not sure that I understand your problem entirely.
What are your problems using the app in the page now?
If having two accounts is concerning you, you can easily transfer the application to the same account that owns the page or vice versa.
Just add the account(owning the page) as one of the Administrators of the application. Then if you want you can delete the other account (now owning the app) from the Administrators.

Creating a Facebook comment box for different sites

I want to add the facebook comment box to several websites for different people. IT asks for an Appid which at first I thought meant their Facebook Business page id. Now im realizing that I need to create a Facebook App for this. My question is this, can I create one app, take the ID and use that for several different comment boxes on various sites that are not related and owned by different clients? Or should I make new Apps for each one?
Thanks
The comment boxes are separated by the URL you define in the HTML attributes, so technically you can use the same App ID for multiple clients since the pages have different URLs.
Still - I would advise you to create a new application for each client. At some point one client might ask you to give them admin access to the Facebook application - and you don't want to give one client access to the application that also serves your other clients...

Test multiple apps on facebook

I freelance now and I am wanting to set up a Facebook account so I can create multiple apps for different clients under this account, then become admin and roll out the app totheir page.
Does anyone else do this and if so how best is it to set up from the outset as I will need to test without the public seeing etc.
Yes - I do this frequently...
Placing your application in sandbox_mode will ensure that only the people who are allowed to see the application have access to it.
You can also add your applications to your own un-published Facebook page, that way no one will be able to search for your page or application either.
A mixture of sandbox_mode and an un-published page should be the safe way to go. Check out the Application Security page in Facebook's documentation for exact explanations of sandbox_mode and the roles you can give users in your application.

Mutliple domains same application, feedback please

After watching the F8 keynote my company wants to use the options with the new open graph beta.
The situation:
The company is devided in 2 different sites, a record label and a artist management site.
Both sites have the same artists, but have different publish options.
The artist site publish event dates and locations to the graph API and the record label publishes if somebody listens or buys a track.
All the artist have their own domains too and will need to have all the options of the above sites, but then only for the artist itself.
Explaining the setup as mentioned above, do I need to create a app for each site to add the functionality, even though they are basically all the same?? Is there a way to use 1 app on all domains?
You can use one app which hosts all the metadata pages and then redirects users when they click through the links.
I would denote one of your sites to be canonical and use it primarily. Only redirect if it doesn't have the content.
Another option would be to migrate your sites so they live under subdomains of the root domain. Facebook authentication and open graph supports using a single application across all subdomains of a root domain.