Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.,
I'm using ng2-facebook-sdk library's, and constructor declare this way constructor(private fb: FacebookService) getting error

What I have tried:

Declare index.html files
<base href="/" />
<script type="text/javascript" src="https://connect.facebook.net/en_US/sdk.js"></script>


I'm using this
import {FacebookService} from 'ng2-facebook-sdk';
constructor(private fb: FacebookService)
{
console.log('Initializing Facebook');
fb.init({
appId: '-------',
xfbml: true,
version: 'v2.8'
});


}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900